Added the bunny! WIP. Has issues with turning around

This commit is contained in:
2026-06-21 18:28:15 -06:00
parent a20cfbe748
commit 2b7f22f4ce
21 changed files with 421 additions and 43 deletions
+7 -2
View File
@@ -3,6 +3,7 @@
[ext_resource type="Script" uid="uid://hydqcpmmn0pu" path="res://snail.gd" id="1_insh8"]
[ext_resource type="Texture2D" uid="uid://6gtaxba6kn6" path="res://assets/images/Snail/Hit (38x24).png" id="1_kwcx3"]
[ext_resource type="Texture2D" uid="uid://cix1l1ksp8og6" path="res://assets/images/Snail/Walk (38x24).png" id="2_insh8"]
[ext_resource type="AudioStream" uid="uid://7pkqsi6fv8hb" path="res://assets/sounds/squish.mp3" id="4_4w31b"]
[sub_resource type="AtlasTexture" id="AtlasTexture_4w31b"]
atlas = ExtResource("1_kwcx3")
@@ -142,11 +143,11 @@ frame_progress = 0.12121709
[node name="Area2D" type="Area2D" parent="AnimatedSprite2D" unique_id=13797364]
position = Vector2(2, 0)
[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1763263041]
[node name="Front" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1763263041]
position = Vector2(-17, 5)
shape = SubResource("RectangleShape2D_r7se8")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1521992116]
[node name="Back" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1521992116]
position = Vector2(15, 5)
shape = SubResource("RectangleShape2D_r7se8")
@@ -159,6 +160,10 @@ one_shot = true
position = Vector2(-1.5, -4)
shape = SubResource("RectangleShape2D_insh8")
[node name="Squish" type="AudioStreamPlayer2D" parent="." unique_id=1323643234]
stream = ExtResource("4_4w31b")
volume_db = 1.0
[connection signal="body_entered" from="AnimatedSprite2D/Area2D" to="." method="_on_body_entered"]
[connection signal="timeout" from="DeathTimer" to="." method="_on_death_timer_timeout"]
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered_for_death"]