Finished with the bunny. As far as I know there are no bugs with it.

This commit is contained in:
2026-06-21 19:22:36 -06:00
parent 2b7f22f4ce
commit 847cafe8d7
4 changed files with 120 additions and 13 deletions
+87 -5
View File
@@ -3,6 +3,44 @@
[ext_resource type="Script" uid="uid://br5jkh3x703qw" path="res://bunny.gd" id="1_dvrf6"]
[ext_resource type="Texture2D" uid="uid://nr1dxc1p6fe8" path="res://assets/images/Bunny/BunnyRun-Sheet.png" id="1_u834r"]
[ext_resource type="Texture2D" uid="uid://bl55ade1p47rf" path="res://assets/images/Bunny/BunnyIdle-Sheet.png" id="2_e4qck"]
[ext_resource type="Texture2D" uid="uid://ckphhkwwkoel1" path="res://assets/images/Bunny/BunnyDead-Sheet.png" id="2_gs0sc"]
[ext_resource type="AudioStream" uid="uid://7pkqsi6fv8hb" path="res://assets/sounds/squish.mp3" id="5_g7ptr"]
[sub_resource type="AtlasTexture" id="AtlasTexture_m81kn"]
atlas = ExtResource("2_gs0sc")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_njyta"]
atlas = ExtResource("2_gs0sc")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wtqm1"]
atlas = ExtResource("2_gs0sc")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_yryj1"]
atlas = ExtResource("2_gs0sc")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_p8qhu"]
atlas = ExtResource("2_gs0sc")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u1wgj"]
atlas = ExtResource("2_gs0sc")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_mtq28"]
atlas = ExtResource("2_gs0sc")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_82yh4"]
atlas = ExtResource("2_gs0sc")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ppqc4"]
atlas = ExtResource("2_gs0sc")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ecvt"]
atlas = ExtResource("2_e4qck")
@@ -60,6 +98,38 @@ region = Rect2(128, 0, 32, 32)
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_m81kn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_njyta")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wtqm1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yryj1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p8qhu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u1wgj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mtq28")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_82yh4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ppqc4")
}],
"loop": true,
"name": &"die",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ecvt")
}, {
"duration": 1.0,
@@ -85,7 +155,7 @@ animations = [{
}],
"loop": true,
"name": &"idle",
"speed": 5.0
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
@@ -112,7 +182,7 @@ animations = [{
size = Vector2(19, 21)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e4qck"]
size = Vector2(14, 4)
size = Vector2(19, 4)
[node name="Bunny" type="Node2D" unique_id=1276098802]
script = ExtResource("1_dvrf6")
@@ -120,13 +190,12 @@ script = ExtResource("1_dvrf6")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=623860503]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_5ecvt")
animation = &"idle"
animation = &"die"
autoplay = "run"
[node name="Area2D" type="Area2D" parent="." unique_id=83756394]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=286806552]
visible = false
position = Vector2(-0.5, -0.5)
shape = SubResource("RectangleShape2D_u834r")
@@ -136,9 +205,22 @@ one_shot = true
[node name="DeathBox" type="Area2D" parent="." unique_id=78599148]
[node name="DeathCollisionBox" type="CollisionShape2D" parent="DeathBox" unique_id=993689400]
position = Vector2(-3, -8)
position = Vector2(-0.5, -8)
shape = SubResource("RectangleShape2D_e4qck")
[node name="HitBoxWait" type="Timer" parent="." unique_id=2135714409]
wait_time = 0.1
one_shot = true
[node name="AnimationTimer" type="Timer" parent="." unique_id=1085040144]
wait_time = 0.75
one_shot = true
[node name="DeathSound" type="AudioStreamPlayer2D" parent="." unique_id=1645161094]
stream = ExtResource("5_g7ptr")
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="timeout" from="WaitTimer" to="." method="_on_wait_timer_timeout"]
[connection signal="body_entered" from="DeathBox" to="." method="_on_death_box_body_entered"]
[connection signal="timeout" from="HitBoxWait" to="." method="_on_hit_box_wait_timeout"]
[connection signal="timeout" from="AnimationTimer" to="." method="_on_animation_timer_timeout"]