Wicked-Depths/spikes.tscn

26 lines
868 B
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=4 format=3 uid="uid://dd774nk6uqj8k"]
[ext_resource type="Script" path="res://spikes.gd" id="1_8aurg"]
[ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="1_bldt1"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i1t6q"]
size = Vector2(17, 2)
[node name="spikes" type="CharacterBody2D"]
script = ExtResource("1_8aurg")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(-9, 0)
texture = ExtResource("1_bldt1")
centered = false
region_enabled = true
region_rect = Rect2(320, 190, 17, 2)
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(-0.5, 1)
shape = SubResource("RectangleShape2D_i1t6q")
[connection signal="body_shape_entered" from="Area2D" to="." method="_on_area_2d_body_shape_entered"]