diff --git a/scenes/enemies/cyclops.tscn b/scenes/enemies/cyclops.tscn new file mode 100644 index 0000000..7817679 --- /dev/null +++ b/scenes/enemies/cyclops.tscn @@ -0,0 +1,171 @@ +[gd_scene load_steps=21 format=3 uid="uid://dxqjsq73hbgd1"] + +[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_vqyfw"] +[ext_resource type="Texture2D" uid="uid://cxkvhb7olncvm" path="res://assets/spritesheets/enemies/cyclops.png" id="2_tsimi"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_02emm"] +atlas = ExtResource("2_tsimi") +region = Rect2(1536, 2048, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4nowt"] +atlas = ExtResource("2_tsimi") +region = Rect2(0, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ieobi"] +atlas = ExtResource("2_tsimi") +region = Rect2(512, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vu33q"] +atlas = ExtResource("2_tsimi") +region = Rect2(1024, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ol8b7"] +atlas = ExtResource("2_tsimi") +region = Rect2(1536, 0, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8gjvo"] +atlas = ExtResource("2_tsimi") +region = Rect2(0, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wkd5o"] +atlas = ExtResource("2_tsimi") +region = Rect2(512, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3onui"] +atlas = ExtResource("2_tsimi") +region = Rect2(1024, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lffse"] +atlas = ExtResource("2_tsimi") +region = Rect2(1536, 4096, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fe0q1"] +atlas = ExtResource("2_tsimi") +region = Rect2(0, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ll1ic"] +atlas = ExtResource("2_tsimi") +region = Rect2(512, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2b7r7"] +atlas = ExtResource("2_tsimi") +region = Rect2(1024, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i5q0p"] +atlas = ExtResource("2_tsimi") +region = Rect2(1536, 6144, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_oloxg"] +atlas = ExtResource("2_tsimi") +region = Rect2(0, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j6ekq"] +atlas = ExtResource("2_tsimi") +region = Rect2(512, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ky0gu"] +atlas = ExtResource("2_tsimi") +region = Rect2(1024, 6656, 512, 512) + +[sub_resource type="SpriteFrames" id="SpriteFrames_2gjkv"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_02emm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4nowt") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ieobi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vu33q") +}], +"loop": true, +"name": &"back", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ol8b7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8gjvo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wkd5o") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3onui") +}], +"loop": true, +"name": &"front", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_lffse") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fe0q1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ll1ic") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2b7r7") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_i5q0p") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_oloxg") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j6ekq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ky0gu") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] +radius = 21.0065 +height = 42.013 + +[node name="Enemy" type="PathFollow2D"] +rotation = 0.00699289 +rotates = false +loop = false +script = ExtResource("1_vqyfw") + +[node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] +position = Vector2(9.15527e-05, 0.00012207) +scale = Vector2(0.09, 0.089) +sprite_frames = SubResource("SpriteFrames_2gjkv") +animation = &"right" +autoplay = "right" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] +position = Vector2(-0.992983, 1.00696) +shape = SubResource("CapsuleShape2D_5hy1j") + +[node name="HealthBar" type="ProgressBar" parent="EnemyBody"] +modulate = Color(0.431373, 0.815686, 0, 1) +offset_left = -15.1814 +offset_top = -25.8945 +offset_right = 86.8186 +offset_bottom = 1.10553 +scale = Vector2(0.3, 0.3) +show_percentage = false diff --git a/scenes/enemies/demon.tscn b/scenes/enemies/demon.tscn new file mode 100644 index 0000000..9c9333a --- /dev/null +++ b/scenes/enemies/demon.tscn @@ -0,0 +1,172 @@ +[gd_scene load_steps=21 format=3 uid="uid://btaiqm84ygubk"] + +[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_7h4t3"] +[ext_resource type="Texture2D" uid="uid://dfdhwhurk5fbm" path="res://assets/spritesheets/enemies/demon.png" id="2_kwsco"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_10024"] +atlas = ExtResource("2_kwsco") +region = Rect2(1536, 2048, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_00dy0"] +atlas = ExtResource("2_kwsco") +region = Rect2(0, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_culrj"] +atlas = ExtResource("2_kwsco") +region = Rect2(512, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0vaxq"] +atlas = ExtResource("2_kwsco") +region = Rect2(1024, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3mqix"] +atlas = ExtResource("2_kwsco") +region = Rect2(1536, 0, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wfj0a"] +atlas = ExtResource("2_kwsco") +region = Rect2(0, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t8isr"] +atlas = ExtResource("2_kwsco") +region = Rect2(512, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xmbaf"] +atlas = ExtResource("2_kwsco") +region = Rect2(1024, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_de3hb"] +atlas = ExtResource("2_kwsco") +region = Rect2(1536, 4096, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wbpcu"] +atlas = ExtResource("2_kwsco") +region = Rect2(0, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vtwgm"] +atlas = ExtResource("2_kwsco") +region = Rect2(512, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_klw0b"] +atlas = ExtResource("2_kwsco") +region = Rect2(1024, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8x1s8"] +atlas = ExtResource("2_kwsco") +region = Rect2(1536, 6144, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4ma7v"] +atlas = ExtResource("2_kwsco") +region = Rect2(0, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s61h2"] +atlas = ExtResource("2_kwsco") +region = Rect2(512, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_h1ctc"] +atlas = ExtResource("2_kwsco") +region = Rect2(1024, 6656, 512, 512) + +[sub_resource type="SpriteFrames" id="SpriteFrames_nh3e1"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_10024") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_00dy0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_culrj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0vaxq") +}], +"loop": true, +"name": &"back", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_3mqix") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wfj0a") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_t8isr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xmbaf") +}], +"loop": true, +"name": &"front", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_de3hb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wbpcu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vtwgm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_klw0b") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_8x1s8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4ma7v") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s61h2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_h1ctc") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] +radius = 21.0065 +height = 42.013 + +[node name="Enemy" type="PathFollow2D"] +rotation = 0.00699289 +rotates = false +loop = false +script = ExtResource("1_7h4t3") + +[node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] +position = Vector2(9.15527e-05, 0.00012207) +scale = Vector2(0.09, 0.089) +sprite_frames = SubResource("SpriteFrames_nh3e1") +animation = &"back" +autoplay = "right" +frame_progress = 0.853856 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] +position = Vector2(-0.992983, 1.00696) +shape = SubResource("CapsuleShape2D_5hy1j") + +[node name="HealthBar" type="ProgressBar" parent="EnemyBody"] +modulate = Color(0.431373, 0.815686, 0, 1) +offset_left = -15.1814 +offset_top = -25.8945 +offset_right = 86.8186 +offset_bottom = 1.10553 +scale = Vector2(0.3, 0.3) +show_percentage = false diff --git a/scenes/enemies/demon_boar.tscn b/scenes/enemies/demon_boar.tscn new file mode 100644 index 0000000..b42b3ae --- /dev/null +++ b/scenes/enemies/demon_boar.tscn @@ -0,0 +1,171 @@ +[gd_scene load_steps=21 format=3 uid="uid://bajs6ngory3qo"] + +[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_00y7u"] +[ext_resource type="Texture2D" uid="uid://d1q5q70hng32n" path="res://assets/spritesheets/enemies/demon-boar.png" id="2_jti63"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_lpyls"] +atlas = ExtResource("2_jti63") +region = Rect2(1536, 2048, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_860ph"] +atlas = ExtResource("2_jti63") +region = Rect2(0, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dabs2"] +atlas = ExtResource("2_jti63") +region = Rect2(512, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ntvbs"] +atlas = ExtResource("2_jti63") +region = Rect2(1024, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7uatc"] +atlas = ExtResource("2_jti63") +region = Rect2(1536, 0, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ray5k"] +atlas = ExtResource("2_jti63") +region = Rect2(0, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tbpvq"] +atlas = ExtResource("2_jti63") +region = Rect2(512, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1y7jo"] +atlas = ExtResource("2_jti63") +region = Rect2(1024, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0bdj2"] +atlas = ExtResource("2_jti63") +region = Rect2(1536, 4096, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hkv0q"] +atlas = ExtResource("2_jti63") +region = Rect2(0, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jtpsr"] +atlas = ExtResource("2_jti63") +region = Rect2(512, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_11ju7"] +atlas = ExtResource("2_jti63") +region = Rect2(1024, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hhppb"] +atlas = ExtResource("2_jti63") +region = Rect2(1536, 6144, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fehrm"] +atlas = ExtResource("2_jti63") +region = Rect2(0, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rnp8l"] +atlas = ExtResource("2_jti63") +region = Rect2(512, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_52nyu"] +atlas = ExtResource("2_jti63") +region = Rect2(1024, 6656, 512, 512) + +[sub_resource type="SpriteFrames" id="SpriteFrames_ny71s"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_lpyls") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_860ph") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dabs2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ntvbs") +}], +"loop": true, +"name": &"back", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7uatc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ray5k") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tbpvq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1y7jo") +}], +"loop": true, +"name": &"front", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_0bdj2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hkv0q") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jtpsr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_11ju7") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_hhppb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fehrm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rnp8l") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_52nyu") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] +radius = 21.0065 +height = 42.013 + +[node name="Enemy" type="PathFollow2D"] +rotation = 0.00699289 +rotates = false +loop = false +script = ExtResource("1_00y7u") + +[node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] +position = Vector2(9.15527e-05, 0.00012207) +scale = Vector2(0.09, 0.089) +sprite_frames = SubResource("SpriteFrames_ny71s") +animation = &"right" +autoplay = "right" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] +position = Vector2(-0.992983, 1.00696) +shape = SubResource("CapsuleShape2D_5hy1j") + +[node name="HealthBar" type="ProgressBar" parent="EnemyBody"] +modulate = Color(0.431373, 0.815686, 0, 1) +offset_left = -15.1814 +offset_top = -25.8945 +offset_right = 86.8186 +offset_bottom = 1.10553 +scale = Vector2(0.3, 0.3) +show_percentage = false diff --git a/scenes/enemies/demon_fungus.tscn b/scenes/enemies/demon_fungus.tscn new file mode 100644 index 0000000..82eabf1 --- /dev/null +++ b/scenes/enemies/demon_fungus.tscn @@ -0,0 +1,173 @@ +[gd_scene load_steps=21 format=3 uid="uid://sbr727jduiqw"] + +[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_4wu2v"] +[ext_resource type="Texture2D" uid="uid://bfyws0srbawxx" path="res://assets/spritesheets/enemies/demon-fungus.png" id="2_jkw1p"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_dt5pf"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1536, 2048, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_w053b"] +atlas = ExtResource("2_jkw1p") +region = Rect2(0, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jgmu6"] +atlas = ExtResource("2_jkw1p") +region = Rect2(512, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qjv30"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1024, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pq10w"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1536, 0, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ra4kd"] +atlas = ExtResource("2_jkw1p") +region = Rect2(0, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vppnh"] +atlas = ExtResource("2_jkw1p") +region = Rect2(512, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mx1o8"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1024, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qlghv"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1536, 4096, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t7dqq"] +atlas = ExtResource("2_jkw1p") +region = Rect2(0, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_l7061"] +atlas = ExtResource("2_jkw1p") +region = Rect2(512, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qcnku"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1024, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ibux8"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1536, 6144, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_daege"] +atlas = ExtResource("2_jkw1p") +region = Rect2(0, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gv5sd"] +atlas = ExtResource("2_jkw1p") +region = Rect2(512, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x8ovq"] +atlas = ExtResource("2_jkw1p") +region = Rect2(1024, 6656, 512, 512) + +[sub_resource type="SpriteFrames" id="SpriteFrames_5yy3x"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_dt5pf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_w053b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jgmu6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qjv30") +}], +"loop": true, +"name": &"back", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pq10w") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ra4kd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vppnh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mx1o8") +}], +"loop": true, +"name": &"front", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_qlghv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_t7dqq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_l7061") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qcnku") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ibux8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_daege") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gv5sd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x8ovq") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] +radius = 21.0065 +height = 42.013 + +[node name="Enemy" type="PathFollow2D"] +rotation = 0.00699289 +rotates = false +loop = false +script = ExtResource("1_4wu2v") + +[node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] +position = Vector2(9.15527e-05, 0.00012207) +scale = Vector2(0.09, 0.089) +sprite_frames = SubResource("SpriteFrames_5yy3x") +animation = &"right" +autoplay = "right" +frame = 2 +frame_progress = 0.287168 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] +position = Vector2(-0.992983, 1.00696) +shape = SubResource("CapsuleShape2D_5hy1j") + +[node name="HealthBar" type="ProgressBar" parent="EnemyBody"] +modulate = Color(0.431373, 0.815686, 0, 1) +offset_left = -15.1814 +offset_top = -25.8945 +offset_right = 86.8186 +offset_bottom = 1.10553 +scale = Vector2(0.3, 0.3) +show_percentage = false diff --git a/scenes/enemies/demon_shark.tscn b/scenes/enemies/demon_shark.tscn new file mode 100644 index 0000000..90203c4 --- /dev/null +++ b/scenes/enemies/demon_shark.tscn @@ -0,0 +1,172 @@ +[gd_scene load_steps=21 format=3 uid="uid://dud7to2ncqrqe"] + +[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_m5a36"] +[ext_resource type="Texture2D" uid="uid://dgegmre1q57o5" path="res://assets/spritesheets/enemies/demon-shark.png" id="2_6ikdk"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_epaj2"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1536, 2048, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1crj8"] +atlas = ExtResource("2_6ikdk") +region = Rect2(0, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_g5ym8"] +atlas = ExtResource("2_6ikdk") +region = Rect2(512, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d2v6e"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1024, 2560, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uu6ue"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1536, 0, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wtl6a"] +atlas = ExtResource("2_6ikdk") +region = Rect2(0, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7kbww"] +atlas = ExtResource("2_6ikdk") +region = Rect2(512, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vbg20"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1024, 512, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_y6wen"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1536, 4096, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1ie2v"] +atlas = ExtResource("2_6ikdk") +region = Rect2(0, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e20cw"] +atlas = ExtResource("2_6ikdk") +region = Rect2(512, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jdojy"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1024, 4608, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_q8wo0"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1536, 6144, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qmced"] +atlas = ExtResource("2_6ikdk") +region = Rect2(0, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_044ys"] +atlas = ExtResource("2_6ikdk") +region = Rect2(512, 6656, 512, 512) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yuu54"] +atlas = ExtResource("2_6ikdk") +region = Rect2(1024, 6656, 512, 512) + +[sub_resource type="SpriteFrames" id="SpriteFrames_3g1io"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_epaj2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1crj8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_g5ym8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_d2v6e") +}], +"loop": true, +"name": &"back", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_uu6ue") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wtl6a") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7kbww") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vbg20") +}], +"loop": true, +"name": &"front", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_y6wen") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1ie2v") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e20cw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jdojy") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_q8wo0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qmced") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_044ys") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_yuu54") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] +radius = 21.0065 +height = 42.013 + +[node name="Enemy" type="PathFollow2D"] +rotation = 0.00699289 +rotates = false +loop = false +script = ExtResource("1_m5a36") + +[node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] +position = Vector2(9.15527e-05, 0.00012207) +scale = Vector2(0.09, 0.089) +sprite_frames = SubResource("SpriteFrames_3g1io") +animation = &"right" +autoplay = "right" +frame_progress = 0.720272 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] +position = Vector2(-0.992983, 1.00696) +shape = SubResource("CapsuleShape2D_5hy1j") + +[node name="HealthBar" type="ProgressBar" parent="EnemyBody"] +modulate = Color(0.431373, 0.815686, 0, 1) +offset_left = -15.1814 +offset_top = -25.8945 +offset_right = 86.8186 +offset_bottom = 1.10553 +scale = Vector2(0.3, 0.3) +show_percentage = false diff --git a/scripts/stages/1/config.gd b/scripts/stages/1/config.gd index ee4fbdf..6719f51 100644 --- a/scripts/stages/1/config.gd +++ b/scripts/stages/1/config.gd @@ -6,6 +6,10 @@ var game = { "spawn_timer": 3.0, "offset": [-30.0, 30.0], "path_direction": [ + { + "progress": 0, + "direction": "right", + }, { "progress": 570, "direction": "front" diff --git a/scripts/stages/1/summon.gd b/scripts/stages/1/summon.gd index 2ab0386..a00e45c 100644 --- a/scripts/stages/1/summon.gd +++ b/scripts/stages/1/summon.gd @@ -7,7 +7,7 @@ var config = load(config_path).new() var spawn_first: bool = true -var enemy: PackedScene = preload("res://scenes/enemies/orc.tscn") +var enemy: PackedScene = preload("res://scenes/enemies/demon.tscn") func _ready(): summon()