GodotGameWorkshop/Scenes/Characters/Player.tscn
doctorbatmanwho-creator 53fd05c165 Add player health, lives, death, and cutscene system
Added player damage, invulnerability frames, knockback, and death handling. Enemies stop attacking after player death and player controls are disabled. Added a persistent three-life system with ambulance cutscenes after the first two deaths and a final Game Over cutscene after the third death.
2026-08-27 21:31:58 -04:00

751 lines
20 KiB
Plaintext

[gd_scene load_steps=103 format=3 uid="uid://bu8e4iyw8pc03"]
[ext_resource type="Script" uid="uid://dsryf6gxqcm1k" path="res://Scripts/player.gd" id="1_0y7nr"]
[ext_resource type="Texture2D" uid="uid://rltv4cun6tyw" path="res://Assets/Graphics/Player/Death/adult death.png" id="2_nn08x"]
[ext_resource type="Texture2D" uid="uid://ddqxjf5l3jdjy" path="res://Assets/Graphics/Player/Jump/Adult_jump.png" id="3_52ee3"]
[ext_resource type="Texture2D" uid="uid://c6uobr1ovln4i" path="res://Assets/Graphics/Player/Hurt/adult hurt.png" id="4_bhhdu"]
[ext_resource type="Texture2D" uid="uid://bplvpwu7ktbqc" path="res://Assets/Graphics/Player/Idle/Adult_idle.png" id="5_megsn"]
[ext_resource type="Texture2D" uid="uid://d1rynuf873jtx" path="res://Assets/Graphics/Player/Punch/Adult_punch_fix.png" id="6_miouo"]
[ext_resource type="Texture2D" uid="uid://o1i0tdq0kk07" path="res://Assets/Graphics/Player/Child/Death/Child_Lose.png" id="7_ksbbd"]
[ext_resource type="Texture2D" uid="uid://b52snftdvkqyg" path="res://Assets/Graphics/Player/Run/Adult_run_fix.png" id="7_miouo"]
[ext_resource type="Texture2D" uid="uid://b7tc4niy82a8i" path="res://Assets/Graphics/Player/Child/Jump/Child_Jump.png" id="8_glx4g"]
[ext_resource type="Texture2D" uid="uid://3ymxvn0qvok6" path="res://Assets/Graphics/Player/Child/Hurt/Child_4_frame.png" id="9_miouo"]
[ext_resource type="Texture2D" uid="uid://dnffgmymstsqo" path="res://Assets/Graphics/Player/Child/Idle/Child_Squat_stand_up_png.png" id="10_o3h8g"]
[ext_resource type="Texture2D" uid="uid://lvcdluia0nr3" path="res://Assets/Graphics/Player/Child/Run/Child_run.png" id="11_1e7my"]
[ext_resource type="Texture2D" uid="uid://g7bg5bcbegtv" path="res://Assets/Graphics/Player/Child/Punch/Child_punch.png" id="12_o3h8g"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_miouo"]
size = Vector2(71, 30)
[sub_resource type="AtlasTexture" id="AtlasTexture_teras"]
atlas = ExtResource("2_nn08x")
region = Rect2(0, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_8p516"]
atlas = ExtResource("2_nn08x")
region = Rect2(123, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_fvoow"]
atlas = ExtResource("2_nn08x")
region = Rect2(246, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_v5fqo"]
atlas = ExtResource("2_nn08x")
region = Rect2(369, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_yf17c"]
atlas = ExtResource("2_nn08x")
region = Rect2(492, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_awd2i"]
atlas = ExtResource("2_nn08x")
region = Rect2(615, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_o2sks"]
atlas = ExtResource("2_nn08x")
region = Rect2(738, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_3rw25"]
atlas = ExtResource("2_nn08x")
region = Rect2(861, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_u4y2r"]
atlas = ExtResource("2_nn08x")
region = Rect2(984, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_tbv6f"]
atlas = ExtResource("2_nn08x")
region = Rect2(1107, 0, 123, 122)
[sub_resource type="AtlasTexture" id="AtlasTexture_vp15a"]
atlas = ExtResource("3_52ee3")
region = Rect2(226, 0, 113, 115)
[sub_resource type="AtlasTexture" id="AtlasTexture_fayk8"]
atlas = ExtResource("4_bhhdu")
region = Rect2(0, 0, 133, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_ddly5"]
atlas = ExtResource("4_bhhdu")
region = Rect2(133, 0, 133, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_omi2y"]
atlas = ExtResource("4_bhhdu")
region = Rect2(266, 0, 133, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_75iyv"]
atlas = ExtResource("4_bhhdu")
region = Rect2(399, 0, 133, 130)
[sub_resource type="AtlasTexture" id="AtlasTexture_yrofn"]
atlas = ExtResource("5_megsn")
region = Rect2(0, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_5gg6q"]
atlas = ExtResource("5_megsn")
region = Rect2(122, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_wenux"]
atlas = ExtResource("5_megsn")
region = Rect2(244, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_vy33c"]
atlas = ExtResource("5_megsn")
region = Rect2(366, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_h1ppb"]
atlas = ExtResource("5_megsn")
region = Rect2(488, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_k22kr"]
atlas = ExtResource("5_megsn")
region = Rect2(610, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_h4i3a"]
atlas = ExtResource("5_megsn")
region = Rect2(732, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_rocfp"]
atlas = ExtResource("5_megsn")
region = Rect2(854, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_uytvf"]
atlas = ExtResource("5_megsn")
region = Rect2(976, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_s7lb4"]
atlas = ExtResource("5_megsn")
region = Rect2(1098, 0, 122, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_ed4yo"]
atlas = ExtResource("3_52ee3")
region = Rect2(0, 0, 113, 115)
[sub_resource type="AtlasTexture" id="AtlasTexture_fsa4a"]
atlas = ExtResource("3_52ee3")
region = Rect2(113, 0, 113, 115)
[sub_resource type="AtlasTexture" id="AtlasTexture_ilb4b"]
atlas = ExtResource("6_miouo")
region = Rect2(0, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_tlew5"]
atlas = ExtResource("6_miouo")
region = Rect2(157, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_h55a1"]
atlas = ExtResource("6_miouo")
region = Rect2(314, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_dqj3d"]
atlas = ExtResource("6_miouo")
region = Rect2(471, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_f6yay"]
atlas = ExtResource("6_miouo")
region = Rect2(628, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_ao2s2"]
atlas = ExtResource("6_miouo")
region = Rect2(785, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_opjds"]
atlas = ExtResource("6_miouo")
region = Rect2(942, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_6626w"]
atlas = ExtResource("6_miouo")
region = Rect2(1099, 0, 157, 155)
[sub_resource type="AtlasTexture" id="AtlasTexture_6f3s4"]
atlas = ExtResource("7_miouo")
region = Rect2(0, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_l3y8b"]
atlas = ExtResource("7_miouo")
region = Rect2(102, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_ujsok"]
atlas = ExtResource("7_miouo")
region = Rect2(204, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_txwsf"]
atlas = ExtResource("7_miouo")
region = Rect2(306, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_i10l2"]
atlas = ExtResource("7_miouo")
region = Rect2(408, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_fgqou"]
atlas = ExtResource("7_miouo")
region = Rect2(510, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_01r87"]
atlas = ExtResource("7_miouo")
region = Rect2(612, 0, 102, 119)
[sub_resource type="AtlasTexture" id="AtlasTexture_jhxql"]
atlas = ExtResource("7_miouo")
region = Rect2(714, 0, 102, 119)
[sub_resource type="SpriteFrames" id="SpriteFrames_nn08x"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_teras")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8p516")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fvoow")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v5fqo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yf17c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_awd2i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o2sks")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3rw25")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u4y2r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tbv6f")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vp15a")
}],
"loop": true,
"name": &"falling",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fayk8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ddly5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_omi2y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_75iyv")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yrofn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5gg6q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wenux")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vy33c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h1ppb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k22kr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h4i3a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rocfp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uytvf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s7lb4")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ed4yo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fsa4a")
}],
"loop": false,
"name": &"jump",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ilb4b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tlew5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h55a1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dqj3d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f6yay")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ao2s2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_opjds")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6626w")
}],
"loop": false,
"name": &"punch",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6f3s4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l3y8b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ujsok")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_txwsf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i10l2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fgqou")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_01r87")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jhxql")
}],
"loop": true,
"name": &"run",
"speed": 12.0
}]
[sub_resource type="AtlasTexture" id="AtlasTexture_ksbbd"]
atlas = ExtResource("7_ksbbd")
region = Rect2(0, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_glx4g"]
atlas = ExtResource("7_ksbbd")
region = Rect2(123, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_miouo"]
atlas = ExtResource("7_ksbbd")
region = Rect2(246, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_o3h8g"]
atlas = ExtResource("7_ksbbd")
region = Rect2(369, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_1e7my"]
atlas = ExtResource("7_ksbbd")
region = Rect2(492, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_arntx"]
atlas = ExtResource("7_ksbbd")
region = Rect2(615, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_lslt6"]
atlas = ExtResource("7_ksbbd")
region = Rect2(738, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_ulo2v"]
atlas = ExtResource("7_ksbbd")
region = Rect2(861, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_1iu4k"]
atlas = ExtResource("7_ksbbd")
region = Rect2(984, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_m0x7a"]
atlas = ExtResource("7_ksbbd")
region = Rect2(1107, 0, 123, 125)
[sub_resource type="AtlasTexture" id="AtlasTexture_5v66d"]
atlas = ExtResource("8_glx4g")
region = Rect2(222, 0, 111, 111)
[sub_resource type="AtlasTexture" id="AtlasTexture_x63xi"]
atlas = ExtResource("9_miouo")
region = Rect2(0, 0, 126, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_i2e8t"]
atlas = ExtResource("9_miouo")
region = Rect2(126, 0, 126, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_qidb7"]
atlas = ExtResource("9_miouo")
region = Rect2(252, 0, 126, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_70hv0"]
atlas = ExtResource("9_miouo")
region = Rect2(378, 0, 126, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_8flut"]
atlas = ExtResource("10_o3h8g")
region = Rect2(0, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_u7x0b"]
atlas = ExtResource("10_o3h8g")
region = Rect2(129, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_utwlt"]
atlas = ExtResource("10_o3h8g")
region = Rect2(258, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_kih0c"]
atlas = ExtResource("10_o3h8g")
region = Rect2(387, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_lyrkg"]
atlas = ExtResource("10_o3h8g")
region = Rect2(516, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_c43xd"]
atlas = ExtResource("10_o3h8g")
region = Rect2(645, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_avx33"]
atlas = ExtResource("10_o3h8g")
region = Rect2(774, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_rxg2u"]
atlas = ExtResource("10_o3h8g")
region = Rect2(903, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_xixlo"]
atlas = ExtResource("10_o3h8g")
region = Rect2(1032, 0, 129, 129)
[sub_resource type="AtlasTexture" id="AtlasTexture_bfbt0"]
atlas = ExtResource("8_glx4g")
region = Rect2(0, 0, 111, 111)
[sub_resource type="AtlasTexture" id="AtlasTexture_wosd6"]
atlas = ExtResource("8_glx4g")
region = Rect2(111, 0, 111, 111)
[sub_resource type="AtlasTexture" id="AtlasTexture_867uf"]
atlas = ExtResource("12_o3h8g")
region = Rect2(0, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_6ilcf"]
atlas = ExtResource("12_o3h8g")
region = Rect2(158, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_6id3a"]
atlas = ExtResource("12_o3h8g")
region = Rect2(316, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_w1x0d"]
atlas = ExtResource("12_o3h8g")
region = Rect2(474, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_ovjwc"]
atlas = ExtResource("12_o3h8g")
region = Rect2(632, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_jawh0"]
atlas = ExtResource("12_o3h8g")
region = Rect2(790, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_jq6en"]
atlas = ExtResource("12_o3h8g")
region = Rect2(948, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_1g8ls"]
atlas = ExtResource("12_o3h8g")
region = Rect2(1106, 0, 158, 158)
[sub_resource type="AtlasTexture" id="AtlasTexture_hkrn1"]
atlas = ExtResource("11_1e7my")
region = Rect2(0, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_wpo1r"]
atlas = ExtResource("11_1e7my")
region = Rect2(102, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_pqity"]
atlas = ExtResource("11_1e7my")
region = Rect2(204, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_opqna"]
atlas = ExtResource("11_1e7my")
region = Rect2(306, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_00okb"]
atlas = ExtResource("11_1e7my")
region = Rect2(408, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_6hr71"]
atlas = ExtResource("11_1e7my")
region = Rect2(510, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_y6y60"]
atlas = ExtResource("11_1e7my")
region = Rect2(612, 0, 102, 102)
[sub_resource type="AtlasTexture" id="AtlasTexture_vmcrb"]
atlas = ExtResource("11_1e7my")
region = Rect2(714, 0, 102, 102)
[sub_resource type="SpriteFrames" id="SpriteFrames_teras"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ksbbd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_glx4g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_miouo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o3h8g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1e7my")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_arntx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lslt6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ulo2v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1iu4k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m0x7a")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5v66d")
}],
"loop": true,
"name": &"falling",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_x63xi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i2e8t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qidb7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_70hv0")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8flut")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u7x0b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_utwlt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kih0c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lyrkg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c43xd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_avx33")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rxg2u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xixlo")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bfbt0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wosd6")
}],
"loop": false,
"name": &"jump",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_867uf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6ilcf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6id3a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w1x0d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ovjwc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jawh0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jq6en")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1g8ls")
}],
"loop": true,
"name": &"punch",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hkrn1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wpo1r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pqity")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_opqna")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_00okb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6hr71")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y6y60")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vmcrb")
}],
"loop": true,
"name": &"run",
"speed": 12.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_2poj3"]
[node name="CharacterBody2D" type="CharacterBody2D"]
z_index = 10
position = Vector2(2, -1)
collision_mask = 3
script = ExtResource("1_0y7nr")
metadata/_edit_group_ = true
[node name="PunchHitbox" type="Area2D" parent="."]
visibility_layer = 2
position = Vector2(50.5, -5)
collision_layer = 4
collision_mask = 2
monitoring = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
shape = SubResource("RectangleShape2D_miouo")
debug_color = Color(0.97765833, 0.1351085, 0.16903454, 0.41960785)
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(-7, -43)
[node name="PlayerGraphic" type="AnimatedSprite2D" parent="."]
z_index = 10
texture_filter = 1
position = Vector2(0, -6)
sprite_frames = SubResource("SpriteFrames_nn08x")
animation = &"death"
autoplay = "idle"
[node name="ChildGraphic" type="AnimatedSprite2D" parent="."]
visible = false
z_index = 10
texture_filter = 1
position = Vector2(0, -10)
sprite_frames = SubResource("SpriteFrames_teras")
animation = &"falling"
autoplay = "idle"
frame_progress = 0.07655463
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(1.6423842, 3.448035)
shape = SubResource("CircleShape2D_2poj3")
debug_color = Color(0.613557, 0.363647, 0.991688, 0.42)
[node name="RightCast" type="RayCast2D" parent="."]
target_position = Vector2(25, 0)
[node name="LeftCast" type="RayCast2D" parent="."]
target_position = Vector2(-24, 0)
[node name="RightSpawn" type="Node2D" parent="."]
position = Vector2(17, -3)
[node name="LeftSpawn" type="Node2D" parent="."]
position = Vector2(-14, -3)
[connection signal="animation_finished" from="PlayerGraphic" to="." method="_on_animation_finished"]
[connection signal="animation_finished" from="ChildGraphic" to="." method="_on_animation_finished"]