Улучшение логики живого доспеха и нажимной плиты. Реализация шипов.

This commit is contained in:
Евгений Титаренко 2023-08-18 16:52:06 +03:00
parent 2e5d268f35
commit 602df1ed1d
6 changed files with 201 additions and 4 deletions

View file

@ -0,0 +1,25 @@
[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://0xgmr60v1vxg" 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"]