Added demon enemy prototype
- Created Demon enemy scene with animations - Implemented demon AI, detection, pursuit, attack, and damage systems - Adjusted enemy collision layers to allow flying enemies to overlap the player - Added and tested combat encounters in Demon Race and Graveyard memory levels
This commit is contained in:
1 parent
0f7889adfb
commit
f0d3931c37
24 files changed
+669
-23
No files matched your search
@@ -0,0 +1,264 @@
|
||||
[gd_scene load_steps=38 format=3 uid="uid://mpbyvdlj8q0v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cukuvefvrcr3f" path="res://Scripts/demon.gd" id="1_02sxe"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5k5805pwyb5q" path="res://Assets/Graphics/Enemies/Demon/IDLE.png" id="1_nr56x"]
|
||||
[ext_resource type="Texture2D" uid="uid://s1yejx4rd7w5" path="res://Assets/Graphics/Enemies/Demon/ATTACK.png" id="1_yqejl"]
|
||||
[ext_resource type="Texture2D" uid="uid://ucdnvhxv3qmr" path="res://Assets/Graphics/Enemies/Demon/DEATH.png" id="2_02sxe"]
|
||||
[ext_resource type="Texture2D" uid="uid://0b1xky08ou2a" path="res://Assets/Graphics/Enemies/Demon/FLYING.png" id="3_ohyyq"]
|
||||
[ext_resource type="Texture2D" uid="uid://7jepws8n5v7q" path="res://Assets/Graphics/Enemies/Demon/HURT.png" id="4_w1cra"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5rfnd"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(0, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ig148"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(81, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nbb7h"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(162, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_20pyc"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(243, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p746w"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(324, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3xtmj"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(405, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_alngn"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(486, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_eayuf"]
|
||||
atlas = ExtResource("1_yqejl")
|
||||
region = Rect2(567, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3vvkl"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(0, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oacwj"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(81, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fu5g0"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(162, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1lf72"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(243, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j4aro"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(324, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_26ege"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(405, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b54qx"]
|
||||
atlas = ExtResource("2_02sxe")
|
||||
region = Rect2(486, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8dk34"]
|
||||
atlas = ExtResource("3_ohyyq")
|
||||
region = Rect2(0, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h1v6f"]
|
||||
atlas = ExtResource("3_ohyyq")
|
||||
region = Rect2(81, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_48ieo"]
|
||||
atlas = ExtResource("3_ohyyq")
|
||||
region = Rect2(162, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1ulxg"]
|
||||
atlas = ExtResource("3_ohyyq")
|
||||
region = Rect2(243, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_k2uqu"]
|
||||
atlas = ExtResource("4_w1cra")
|
||||
region = Rect2(0, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s0lji"]
|
||||
atlas = ExtResource("4_w1cra")
|
||||
region = Rect2(81, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g8aks"]
|
||||
atlas = ExtResource("4_w1cra")
|
||||
region = Rect2(162, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xtf25"]
|
||||
atlas = ExtResource("4_w1cra")
|
||||
region = Rect2(243, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6eob1"]
|
||||
atlas = ExtResource("1_nr56x")
|
||||
region = Rect2(0, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v5p4t"]
|
||||
atlas = ExtResource("1_nr56x")
|
||||
region = Rect2(81, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f6610"]
|
||||
atlas = ExtResource("1_nr56x")
|
||||
region = Rect2(162, 0, 81, 71)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yqejl"]
|
||||
atlas = ExtResource("1_nr56x")
|
||||
region = Rect2(243, 0, 81, 71)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_02sxe"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5rfnd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ig148")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nbb7h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_20pyc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p746w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3xtmj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_alngn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_eayuf")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"attack",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3vvkl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oacwj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fu5g0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1lf72")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j4aro")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_26ege")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b54qx")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"death",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8dk34")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h1v6f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_48ieo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1ulxg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"flying",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_k2uqu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s0lji")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g8aks")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xtf25")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6eob1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v5p4t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f6610")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yqejl")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ohyyq"]
|
||||
radius = 41.0
|
||||
height = 82.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yqejl"]
|
||||
size = Vector2(513, 63)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_02sxe"]
|
||||
size = Vector2(60, 50)
|
||||
|
||||
[node name="Demon" type="CharacterBody2D"]
|
||||
texture_filter = 1
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_02sxe")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_02sxe")
|
||||
animation = &"flying"
|
||||
frame_progress = 0.13023382
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-2, 2)
|
||||
shape = SubResource("CapsuleShape2D_ohyyq")
|
||||
debug_color = Color(0.49987894, 0.42888275, 1, 0.41960785)
|
||||
|
||||
[node name="DetectionArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DetectionArea"]
|
||||
position = Vector2(1.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_yqejl")
|
||||
debug_color = Color(0.3990774, 0.5954131, 0.3757497, 0.41960785)
|
||||
|
||||
[node name="AttackHitbox" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackHitbox"]
|
||||
shape = SubResource("RectangleShape2D_02sxe")
|
||||
debug_color = Color(0.9642144, 0.14822191, 0.31210807, 0.41960785)
|
||||
@@ -0,0 +1,746 @@
|
||||
[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)
|
||||
script = ExtResource("1_0y7nr")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="PunchHitbox" type="Area2D" parent="."]
|
||||
monitoring = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
|
||||
position = Vector2(50.5, -5)
|
||||
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 = &"idle"
|
||||
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"]
|
||||
@@ -0,0 +1,397 @@
|
||||
[gd_scene load_steps=57 format=3 uid="uid://0lyd0y14s0w4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://f88hycnuf3m5" path="res://Scripts/skeleton.gd" id="1_abfcy"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcukplq3ykd13" path="res://Assets/Graphics/Enemies/Skeleton/Skeleton_01_White_Idle.png" id="1_vif15"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy3t1xgbpcx1t" path="res://Assets/Graphics/Enemies/Skeleton/Skeleton_01_White_Attack1.png" id="2_yek4v"]
|
||||
[ext_resource type="Texture2D" uid="uid://den6xknhkm8d" path="res://Assets/Graphics/Enemies/Skeleton/Skeleton_01_White_Die.png" id="3_2bjux"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxmvtyalmav26" path="res://Assets/Graphics/Enemies/Skeleton/Skeleton_01_White_Hurt.png" id="4_rtppx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dilf6h30fxxw4" path="res://Assets/Graphics/Enemies/Skeleton/Skeleton_01_White_Walk.png" id="6_k2wj7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_87cwn"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(0, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lxoki"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(96, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xneb1"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(192, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ci2ge"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(288, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ma653"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(384, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ecs23"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(480, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0ftre"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(576, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lii7c"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(672, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_10q1y"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(768, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tfme2"]
|
||||
atlas = ExtResource("2_yek4v")
|
||||
region = Rect2(864, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b70gm"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(0, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t5rxt"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(96, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y8jxr"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(192, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7p4ha"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(288, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jlfek"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(384, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rsssq"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(480, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y1shx"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(576, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_omjhr"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(672, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8lo8o"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(768, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ijbhh"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(864, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ddipo"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(960, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_353gq"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(1056, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ix6k6"]
|
||||
atlas = ExtResource("3_2bjux")
|
||||
region = Rect2(1152, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hdu5v"]
|
||||
atlas = ExtResource("4_rtppx")
|
||||
region = Rect2(0, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vips4"]
|
||||
atlas = ExtResource("4_rtppx")
|
||||
region = Rect2(96, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jdpkg"]
|
||||
atlas = ExtResource("4_rtppx")
|
||||
region = Rect2(192, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5xlrn"]
|
||||
atlas = ExtResource("4_rtppx")
|
||||
region = Rect2(288, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0i2gx"]
|
||||
atlas = ExtResource("4_rtppx")
|
||||
region = Rect2(384, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_abfcy"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(0, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4ie6e"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(96, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iuen5"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(192, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rxd7e"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(288, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yek4v"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(384, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2bjux"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(480, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rtppx"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(576, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_k2wj7"]
|
||||
atlas = ExtResource("1_vif15")
|
||||
region = Rect2(672, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wx38x"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(0, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mvwdc"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(96, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_whxj0"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(192, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2hcwm"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(288, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u2tho"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(384, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_14y5s"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(480, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xuc1f"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(576, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pdd2a"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(672, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1xayb"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(768, 0, 96, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0ba4d"]
|
||||
atlas = ExtResource("6_k2wj7")
|
||||
region = Rect2(864, 0, 96, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_87cwn"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_87cwn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lxoki")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xneb1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ci2ge")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ma653")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ecs23")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0ftre")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lii7c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_10q1y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tfme2")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"attack",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b70gm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t5rxt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y8jxr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7p4ha")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jlfek")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rsssq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y1shx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_omjhr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8lo8o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ijbhh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ddipo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_353gq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ix6k6")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"death",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hdu5v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vips4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jdpkg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5xlrn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0i2gx")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_abfcy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4ie6e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iuen5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rxd7e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yek4v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2bjux")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rtppx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_k2wj7")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wx38x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mvwdc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_whxj0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2hcwm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u2tho")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_14y5s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xuc1f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pdd2a")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1xayb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0ba4d")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_yek4v"]
|
||||
height = 72.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yek4v"]
|
||||
size = Vector2(371, 71)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2bjux"]
|
||||
size = Vector2(452, 33)
|
||||
|
||||
[node name="Skeleton" type="CharacterBody2D"]
|
||||
z_index = 10
|
||||
script = ExtResource("1_abfcy")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(1.5, 1.5)
|
||||
sprite_frames = SubResource("SpriteFrames_87cwn")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(-5, 12)
|
||||
shape = SubResource("CapsuleShape2D_yek4v")
|
||||
debug_color = Color(0.61885023, 0.36088452, 0.99050516, 0.41960785)
|
||||
|
||||
[node name="DetectionArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DetectionArea"]
|
||||
position = Vector2(12.5, 13.5)
|
||||
shape = SubResource("RectangleShape2D_yek4v")
|
||||
debug_color = Color(0.51556015, 0.56157154, 0.37343058, 0.41960785)
|
||||
|
||||
[node name="AttackHitbox" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackHitbox"]
|
||||
position = Vector2(37, 0.5)
|
||||
shape = SubResource("RectangleShape2D_2bjux")
|
||||
debug_color = Color(0.9785972, 0.11901257, 0.22291586, 0.41960785)
|
||||
@@ -0,0 +1,108 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://cat3n1unb05u6"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://1qmvigexa3to" path="res://Assets/Graphics/Enemies/slime_purple.png" id="1_jokqx"]
|
||||
[ext_resource type="Script" uid="uid://vjdcp0a4i0j8" path="res://Scripts/slime.gd" id="1_swwnm"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5gljc"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(0, 48, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vblni"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(24, 48, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e388w"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(48, 48, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r4o34"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(72, 48, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_swwnm"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aiwxb"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_paq7w"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f4si1"]
|
||||
atlas = ExtResource("1_jokqx")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5gljc"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5gljc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vblni")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e388w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r4o34")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_swwnm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aiwxb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_paq7w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f4si1")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vblni"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="Slime" type="Area2D"]
|
||||
script = ExtResource("1_swwnm")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="slimeGraphic" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_5gljc")
|
||||
animation = &"hurt"
|
||||
autoplay = "idle"
|
||||
frame = 3
|
||||
frame_progress = 1.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 4)
|
||||
shape = SubResource("RectangleShape2D_vblni")
|
||||
|
||||
[node name="RightSideCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(14, 0)
|
||||
|
||||
[node name="LeftSideCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-14, 0)
|
||||
|
||||
[node name="LeftDownCast" type="RayCast2D" parent="."]
|
||||
position = Vector2(-8, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[node name="RightDownCast" type="RayCast2D" parent="."]
|
||||
position = Vector2(8, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in new issue
Block a user