Add dead animation to enemies

This commit is contained in:
Moe Poi ~ 2023-11-19 17:13:58 +07:00
parent c2e571b70f
commit 9501104d53
6 changed files with 806 additions and 16 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://dxqjsq73hbgd1"]
[gd_scene load_steps=37 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"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_5yr04"]
atlas = ExtResource("2_tsimi")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_0vqdg"]
atlas = ExtResource("2_tsimi")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_lr853"]
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_jyf0d"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ol8b7"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_spk7q"]
atlas = ExtResource("2_tsimi")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_7ssd3"]
atlas = ExtResource("2_tsimi")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_nspin"]
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_rrkc6"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_lffse"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_2nfkt"]
atlas = ExtResource("2_tsimi")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_8fp8o"]
atlas = ExtResource("2_tsimi")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_lxlv8"]
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_qpspw"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_i5q0p"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_yrfms"]
atlas = ExtResource("2_tsimi")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_sphuq"]
atlas = ExtResource("2_tsimi")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_vned8"]
atlas = ExtResource("2_tsimi")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ftvcv"]
atlas = ExtResource("2_tsimi")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_2gjkv"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5yr04")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0vqdg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lr853")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jyf0d")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ol8b7")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_spk7q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7ssd3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nspin")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rrkc6")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lffse")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2nfkt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8fp8o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lxlv8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qpspw")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i5q0p")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yrfms")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sphuq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vned8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ftvcv")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,8 +286,10 @@ script = ExtResource("1_vqyfw")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_2gjkv")
animation = &"right"
animation = &"right_dead"
autoplay = "right"
frame = 2
frame_progress = 0.575532
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]
position = Vector2(-0.992983, 1.00696)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://btaiqm84ygubk"]
[gd_scene load_steps=37 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"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_0f7aw"]
atlas = ExtResource("2_kwsco")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_xqlv7"]
atlas = ExtResource("2_kwsco")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hpbcb"]
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_erk8i"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_3mqix"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_nuuhh"]
atlas = ExtResource("2_kwsco")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_uefol"]
atlas = ExtResource("2_kwsco")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_grx1m"]
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_gcbhh"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_de3hb"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hot4g"]
atlas = ExtResource("2_kwsco")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_kag5r"]
atlas = ExtResource("2_kwsco")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_yyv1e"]
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_8djft"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_8x1s8"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_8j0ad"]
atlas = ExtResource("2_kwsco")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_y41wk"]
atlas = ExtResource("2_kwsco")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_biudf"]
atlas = ExtResource("2_kwsco")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_mwimp"]
atlas = ExtResource("2_kwsco")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_nh3e1"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_0f7aw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xqlv7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hpbcb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_erk8i")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3mqix")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nuuhh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uefol")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_grx1m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gcbhh")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_de3hb")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hot4g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kag5r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yyv1e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8djft")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8x1s8")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8j0ad")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y41wk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_biudf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mwimp")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,9 +286,8 @@ script = ExtResource("1_7h4t3")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_nh3e1")
animation = &"back"
animation = &"right_dead"
autoplay = "right"
frame_progress = 0.853856
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]
position = Vector2(-0.992983, 1.00696)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://bajs6ngory3qo"]
[gd_scene load_steps=37 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"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_jti63")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_s2ruk"]
atlas = ExtResource("2_jti63")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_afysb"]
atlas = ExtResource("2_jti63")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_dytdt"]
atlas = ExtResource("2_jti63")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_3skrt"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_7uatc"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_jti63")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hfpvx"]
atlas = ExtResource("2_jti63")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_61kik"]
atlas = ExtResource("2_jti63")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ub2md"]
atlas = ExtResource("2_jti63")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_jskih"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_0bdj2"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_jti63")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_wjxql"]
atlas = ExtResource("2_jti63")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_g8t4f"]
atlas = ExtResource("2_jti63")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_uguyf"]
atlas = ExtResource("2_jti63")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_akp2h"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hhppb"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_jti63")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ic7nf"]
atlas = ExtResource("2_jti63")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_o5i6e"]
atlas = ExtResource("2_jti63")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_drpyn"]
atlas = ExtResource("2_jti63")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_868x7"]
atlas = ExtResource("2_jti63")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_ny71s"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_s2ruk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_afysb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dytdt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3skrt")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7uatc")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hfpvx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_61kik")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ub2md")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jskih")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_0bdj2")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_wjxql")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g8t4f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uguyf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_akp2h")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hhppb")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ic7nf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o5i6e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_drpyn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_868x7")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,7 +286,7 @@ script = ExtResource("1_00y7u")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_ny71s")
animation = &"right"
animation = &"right_dead"
autoplay = "right"
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://sbr727jduiqw"]
[gd_scene load_steps=37 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"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_i26da"]
atlas = ExtResource("2_jkw1p")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_bfh4y"]
atlas = ExtResource("2_jkw1p")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_mnffh"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_wbr8g"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_pq10w"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_nrtl5"]
atlas = ExtResource("2_jkw1p")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_f5fdb"]
atlas = ExtResource("2_jkw1p")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_qmj20"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_gpwgv"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_qlghv"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hccyt"]
atlas = ExtResource("2_jkw1p")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_2b72c"]
atlas = ExtResource("2_jkw1p")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_6f40i"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_jn1cs"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ibux8"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_1riw6"]
atlas = ExtResource("2_jkw1p")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_3u45b"]
atlas = ExtResource("2_jkw1p")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_10r1v"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_lwnf4"]
atlas = ExtResource("2_jkw1p")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_5yy3x"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i26da")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bfh4y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mnffh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wbr8g")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pq10w")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nrtl5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f5fdb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qmj20")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gpwgv")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qlghv")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hccyt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2b72c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6f40i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jn1cs")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ibux8")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1riw6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3u45b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_10r1v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lwnf4")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,10 +286,8 @@ script = ExtResource("1_4wu2v")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_5yy3x")
animation = &"right"
animation = &"right_dead"
autoplay = "right"
frame = 2
frame_progress = 0.287168
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]
position = Vector2(-0.992983, 1.00696)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://dud7to2ncqrqe"]
[gd_scene load_steps=37 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"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_348hq"]
atlas = ExtResource("2_6ikdk")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_kiw65"]
atlas = ExtResource("2_6ikdk")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ga4qn"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_dtdui"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_uu6ue"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_fplju"]
atlas = ExtResource("2_6ikdk")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_f8usi"]
atlas = ExtResource("2_6ikdk")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_wr5e5"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_g6dcp"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_y6wen"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_8g5l7"]
atlas = ExtResource("2_6ikdk")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_jyd5n"]
atlas = ExtResource("2_6ikdk")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_1r6jd"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_dldss"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_q8wo0"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_o1ga7"]
atlas = ExtResource("2_6ikdk")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_2ulxn"]
atlas = ExtResource("2_6ikdk")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_3hoq3"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_r0dp7"]
atlas = ExtResource("2_6ikdk")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_3g1io"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_348hq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kiw65")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ga4qn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dtdui")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uu6ue")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fplju")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f8usi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wr5e5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g6dcp")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_y6wen")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8g5l7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jyd5n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1r6jd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dldss")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_q8wo0")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_o1ga7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2ulxn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3hoq3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r0dp7")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,9 +286,8 @@ script = ExtResource("1_m5a36")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_3g1io")
animation = &"right"
animation = &"right_dead"
autoplay = "right"
frame_progress = 0.720272
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]
position = Vector2(-0.992983, 1.00696)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://dldnbqg4oc3my"]
[gd_scene load_steps=37 format=3 uid="uid://dldnbqg4oc3my"]
[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_7wn36"]
[ext_resource type="Texture2D" uid="uid://ddot33oyu6vlh" path="res://assets/spritesheets/enemies/orc.png" id="2_mmtjp"]
@ -19,6 +19,22 @@ region = Rect2(512, 2560, 512, 512)
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 2560, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_bs36l"]
atlas = ExtResource("2_mmtjp")
region = Rect2(0, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_5p8cy"]
atlas = ExtResource("2_mmtjp")
region = Rect2(512, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_qxkbm"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_2fno1"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 3584, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_oqxmm"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 0, 512, 512)
@ -35,6 +51,22 @@ region = Rect2(512, 512, 512, 512)
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 512, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_w1pot"]
atlas = ExtResource("2_mmtjp")
region = Rect2(0, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_wp6uf"]
atlas = ExtResource("2_mmtjp")
region = Rect2(512, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_icb58"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_yhpyg"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 1536, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_xq474"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 4096, 512, 512)
@ -51,6 +83,22 @@ region = Rect2(512, 4608, 512, 512)
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 4608, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_lo0li"]
atlas = ExtResource("2_mmtjp")
region = Rect2(0, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_5o1ee"]
atlas = ExtResource("2_mmtjp")
region = Rect2(512, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_0qjdk"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_77ryy"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 5632, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_hiwr4"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 6144, 512, 512)
@ -67,6 +115,22 @@ region = Rect2(512, 6656, 512, 512)
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 6656, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_cr865"]
atlas = ExtResource("2_mmtjp")
region = Rect2(0, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_qt8u6"]
atlas = ExtResource("2_mmtjp")
region = Rect2(512, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_ggbg6"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1024, 7680, 512, 512)
[sub_resource type="AtlasTexture" id="AtlasTexture_4etrg"]
atlas = ExtResource("2_mmtjp")
region = Rect2(1536, 7680, 512, 512)
[sub_resource type="SpriteFrames" id="SpriteFrames_ebg80"]
animations = [{
"frames": [{
@ -88,6 +152,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bs36l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5p8cy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qxkbm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2fno1")
}],
"loop": true,
"name": &"back_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_oqxmm")
}, {
"duration": 1.0,
@ -105,6 +186,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_w1pot")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wp6uf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_icb58")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yhpyg")
}],
"loop": true,
"name": &"front_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xq474")
}, {
"duration": 1.0,
@ -122,6 +220,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lo0li")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5o1ee")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0qjdk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_77ryy")
}],
"loop": true,
"name": &"left_dead",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hiwr4")
}, {
"duration": 1.0,
@ -136,6 +251,23 @@ animations = [{
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cr865")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qt8u6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ggbg6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4etrg")
}],
"loop": true,
"name": &"right_dead",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"]
@ -154,7 +286,7 @@ script = ExtResource("1_7wn36")
position = Vector2(9.15527e-05, 0.00012207)
scale = Vector2(0.09, 0.089)
sprite_frames = SubResource("SpriteFrames_ebg80")
animation = &"right"
animation = &"right_dead"
autoplay = "right"
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"]