feat: them skeletons man + reload after dancing
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 5s
Create tag and build when new code gets to main / Export (push) Successful in 2m12s

This commit is contained in:
2025-08-02 23:57:02 +02:00
parent eda35b4e9b
commit 3e0f1c99d5
9 changed files with 851 additions and 9 deletions

477
ennemy/skeleton.tscn Normal file
View File

@ -0,0 +1,477 @@
[gd_scene load_steps=67 format=3 uid="uid://b2fyaj2fmrug7"]
[ext_resource type="Texture2D" uid="uid://din26pdtyka1n" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Hit.png" id="1_yndcr"]
[ext_resource type="Texture2D" uid="uid://bpxn5oa3r3121" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Dead.png" id="2_sx7nw"]
[ext_resource type="Texture2D" uid="uid://kd8wotp135ud" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Attack.png" id="3_whaqf"]
[ext_resource type="Texture2D" uid="uid://d4hj35wb0pm2b" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Idle.png" id="4_g7r65"]
[ext_resource type="Script" uid="uid://bhbn4pngdfk7w" path="res://damageable/damageable.gd" id="5_oqxir"]
[ext_resource type="Script" uid="uid://b0ewbthpfsy7t" path="res://ennemy/skeleton.gd" id="5_sx7nw"]
[ext_resource type="PackedScene" uid="uid://7sqwi3lygb1u" path="res://damageable/hitbox.tscn" id="6_kopbd"]
[sub_resource type="AtlasTexture" id="AtlasTexture_yvsr8"]
atlas = ExtResource("1_yndcr")
region = Rect2(0, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tko6h"]
atlas = ExtResource("1_yndcr")
region = Rect2(60, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_am8a1"]
atlas = ExtResource("1_yndcr")
region = Rect2(90, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8dc3g"]
atlas = ExtResource("1_yndcr")
region = Rect2(120, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_htgcl"]
atlas = ExtResource("2_sx7nw")
region = Rect2(0, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_smeu8"]
atlas = ExtResource("2_sx7nw")
region = Rect2(33, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_f3y11"]
atlas = ExtResource("2_sx7nw")
region = Rect2(66, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cpm2s"]
atlas = ExtResource("2_sx7nw")
region = Rect2(99, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u81y6"]
atlas = ExtResource("2_sx7nw")
region = Rect2(132, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_rt5wr"]
atlas = ExtResource("2_sx7nw")
region = Rect2(165, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_mnw77"]
atlas = ExtResource("2_sx7nw")
region = Rect2(198, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vjgyh"]
atlas = ExtResource("2_sx7nw")
region = Rect2(231, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_d5iia"]
atlas = ExtResource("2_sx7nw")
region = Rect2(264, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_asu84"]
atlas = ExtResource("2_sx7nw")
region = Rect2(297, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qwt6e"]
atlas = ExtResource("2_sx7nw")
region = Rect2(330, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_off2o"]
atlas = ExtResource("2_sx7nw")
region = Rect2(363, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tttfs"]
atlas = ExtResource("2_sx7nw")
region = Rect2(396, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1iygd"]
atlas = ExtResource("2_sx7nw")
region = Rect2(429, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g5xqc"]
atlas = ExtResource("2_sx7nw")
region = Rect2(462, 0, 33, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_s4o1y"]
atlas = ExtResource("1_yndcr")
region = Rect2(0, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_7mmqq"]
atlas = ExtResource("1_yndcr")
region = Rect2(30, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3exxq"]
atlas = ExtResource("1_yndcr")
region = Rect2(60, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5aa3q"]
atlas = ExtResource("1_yndcr")
region = Rect2(90, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bmvma"]
atlas = ExtResource("1_yndcr")
region = Rect2(120, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_shlp4"]
atlas = ExtResource("1_yndcr")
region = Rect2(150, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2n44k"]
atlas = ExtResource("1_yndcr")
region = Rect2(180, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_86lig"]
atlas = ExtResource("1_yndcr")
region = Rect2(210, 0, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ldnlw"]
atlas = ExtResource("3_whaqf")
region = Rect2(0, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_qe8ju"]
atlas = ExtResource("3_whaqf")
region = Rect2(43, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_bnk2o"]
atlas = ExtResource("3_whaqf")
region = Rect2(86, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_oosfy"]
atlas = ExtResource("3_whaqf")
region = Rect2(129, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_nf4f2"]
atlas = ExtResource("3_whaqf")
region = Rect2(172, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_xkvoa"]
atlas = ExtResource("3_whaqf")
region = Rect2(215, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_t5kpo"]
atlas = ExtResource("3_whaqf")
region = Rect2(258, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_pw0td"]
atlas = ExtResource("3_whaqf")
region = Rect2(301, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_37eu1"]
atlas = ExtResource("3_whaqf")
region = Rect2(344, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_0wkqm"]
atlas = ExtResource("3_whaqf")
region = Rect2(387, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_ve5sr"]
atlas = ExtResource("3_whaqf")
region = Rect2(430, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_5s44m"]
atlas = ExtResource("3_whaqf")
region = Rect2(473, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_ibca3"]
atlas = ExtResource("3_whaqf")
region = Rect2(516, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_g3y5b"]
atlas = ExtResource("3_whaqf")
region = Rect2(559, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_1slqb"]
atlas = ExtResource("3_whaqf")
region = Rect2(602, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_uo83y"]
atlas = ExtResource("3_whaqf")
region = Rect2(645, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_y0aao"]
atlas = ExtResource("3_whaqf")
region = Rect2(688, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_wm5rm"]
atlas = ExtResource("3_whaqf")
region = Rect2(731, 0, 43, 37)
[sub_resource type="AtlasTexture" id="AtlasTexture_vieuh"]
atlas = ExtResource("4_g7r65")
region = Rect2(0, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_yjja3"]
atlas = ExtResource("4_g7r65")
region = Rect2(24, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_l0gw7"]
atlas = ExtResource("4_g7r65")
region = Rect2(48, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_inymm"]
atlas = ExtResource("4_g7r65")
region = Rect2(72, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jcxqu"]
atlas = ExtResource("4_g7r65")
region = Rect2(96, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0arob"]
atlas = ExtResource("4_g7r65")
region = Rect2(120, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_dij0e"]
atlas = ExtResource("4_g7r65")
region = Rect2(144, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_k1udn"]
atlas = ExtResource("4_g7r65")
region = Rect2(168, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wat4s"]
atlas = ExtResource("4_g7r65")
region = Rect2(192, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ywjan"]
atlas = ExtResource("4_g7r65")
region = Rect2(216, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_m74q3"]
atlas = ExtResource("4_g7r65")
region = Rect2(240, 0, 24, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_getpj"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yvsr8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tko6h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_am8a1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8dc3g")
}],
"loop": true,
"name": &"dance",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_htgcl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_smeu8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f3y11")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cpm2s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u81y6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rt5wr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mnw77")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vjgyh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d5iia")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_asu84")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qwt6e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_off2o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tttfs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1iygd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g5xqc")
}],
"loop": false,
"name": &"die",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_s4o1y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7mmqq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3exxq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5aa3q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bmvma")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_shlp4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2n44k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_86lig")
}],
"loop": false,
"name": &"got_hit",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ldnlw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qe8ju")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bnk2o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oosfy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nf4f2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xkvoa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t5kpo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pw0td")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_37eu1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0wkqm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ve5sr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5s44m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ibca3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g3y5b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1slqb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uo83y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y0aao")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wm5rm")
}],
"loop": false,
"name": &"hit",
"speed": 17.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vieuh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yjja3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l0gw7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_inymm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jcxqu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0arob")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dij0e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k1udn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wat4s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ywjan")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m74q3")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_qsp4k"]
radius = 6.08276
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kq58d"]
size = Vector2(6, 21)
[node name="Skeleton" type="AnimatedSprite2D"]
sprite_frames = SubResource("SpriteFrames_getpj")
animation = &"die"
autoplay = "idle"
flip_h = true
script = ExtResource("5_sx7nw")
[node name="Hitbox" parent="." instance=ExtResource("6_kopbd")]
hitback_direction = Vector2(-1, -1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2(-8, 8)
shape = SubResource("CircleShape2D_qsp4k")
[node name="Hitbox2" parent="." instance=ExtResource("6_kopbd")]
hitback_direction = Vector2(-1, -1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox2"]
position = Vector2(4, 5.5)
shape = SubResource("RectangleShape2D_kq58d")
[node name="Damageable" type="Node" parent="Hitbox2"]
script = ExtResource("5_oqxir")
health = 1
hitback_velocity = 0.0
metadata/_custom_type_script = "uid://bhbn4pngdfk7w"
[node name="WaitToDie" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[node name="Hitting" type="Timer" parent="."]
one_shot = true
[node name="WaitToHit" type="Timer" parent="."]
wait_time = 3.0
[connection signal="die" from="Hitbox2/Damageable" to="." method="_on_damageable_die"]
[connection signal="timeout" from="WaitToDie" to="." method="_on_wait_to_die_timeout"]
[connection signal="timeout" from="Hitting" to="." method="stop_hitting"]
[connection signal="timeout" from="WaitToHit" to="." method="hit"]