227 lines
6.7 KiB
Plaintext
227 lines
6.7 KiB
Plaintext
[gd_scene format=3 uid="uid://gmne5t7xj3ta"]
|
|
|
|
[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")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qx6ai"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jsbfh"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g5rs1"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_76uj3"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_11snv"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(160, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_km0dj"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(192, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6sma1"]
|
|
atlas = ExtResource("2_e4qck")
|
|
region = Rect2(224, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dvrf6"]
|
|
atlas = ExtResource("1_u834r")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e4qck"]
|
|
atlas = ExtResource("1_u834r")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gs0sc"]
|
|
atlas = ExtResource("1_u834r")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g7ptr"]
|
|
atlas = ExtResource("1_u834r")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vonwv"]
|
|
atlas = ExtResource("1_u834r")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_5ecvt"]
|
|
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,
|
|
"texture": SubResource("AtlasTexture_qx6ai")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jsbfh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_g5rs1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_76uj3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_11snv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_km0dj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6sma1")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dvrf6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e4qck")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gs0sc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_g7ptr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vonwv")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u834r"]
|
|
size = Vector2(19, 16)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e4qck"]
|
|
size = Vector2(19, 4)
|
|
|
|
[node name="Bunny" type="Node2D" unique_id=1276098802]
|
|
script = ExtResource("1_dvrf6")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=623860503]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_5ecvt")
|
|
animation = &"run"
|
|
autoplay = "run"
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=83756394]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=286806552]
|
|
position = Vector2(-0.5, -3)
|
|
shape = SubResource("RectangleShape2D_u834r")
|
|
|
|
[node name="WaitTimer" type="Timer" parent="." unique_id=618329498]
|
|
one_shot = true
|
|
|
|
[node name="DeathBox" type="Area2D" parent="." unique_id=78599148]
|
|
|
|
[node name="DeathCollisionBox" type="CollisionShape2D" parent="DeathBox" unique_id=993689400]
|
|
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"]
|