1bit-game-jam/prefabs/entities/spikes.tscn

25 lines
988 B
Text

[gd_scene load_steps=4 format=3 uid="uid://dqx43vr727ft8"]
[ext_resource type="Script" path="res://scripts/entities/Spikes.cs" id="1_r27mb"]
[ext_resource type="SpriteFrames" uid="uid://uith5rxps4s" path="res://sprites/tiles/floor/spikes/spikes.tres" id="2_t76h0"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_guqiy"]
size = Vector2(32, 32)
[node name="spikes" type="Area2D"]
z_index = -1
script = ExtResource("1_r27mb")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_t76h0")
frame = 2
frame_progress = 1.0
[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_guqiy")
[connection signal="body_entered" from="." to="." method="_OnEntered"]
[connection signal="body_exited" from="." to="." method="_OnExited"]
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_WhenOpened"]