2025-09-18 02:57:31 +02:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://chu67ci7sl488"]
|
2025-09-16 00:28:49 +02:00
|
|
|
|
2025-09-16 14:59:40 +02:00
|
|
|
[ext_resource type="Script" uid="uid://12jns4dppxxj" path="res://enemies/ghost.gd" id="1_6attn"]
|
2025-09-16 19:12:40 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="2_34o1m"]
|
2025-09-17 15:59:14 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://d3b5hmhjw2jyc" path="res://enemies/ghost animation/Ghost 1.png" id="3_34o1m"]
|
2025-09-16 14:59:40 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_obmiq"]
|
2025-09-18 02:57:31 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dfhxhum8lek56" path="res://enemies/ghost animation/Ghost 2.png" id="4_4awot"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ve5px6ib45g" path="res://enemies/ghost animation/Ghost 3.png" id="5_etobg"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cmg8yws3gwx6u" path="res://enemies/ghost animation/Ghost 4.png" id="6_kbrsm"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bs3lt13umfxu8" path="res://enemies/ghost animation/Ghost 5.png" id="7_a4rx2"]
|
2025-09-16 00:28:49 +02:00
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6attn"]
|
|
|
|
|
|
2025-09-18 02:57:31 +02:00
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_je28r"]
|
|
|
|
|
animations = [{
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": ExtResource("3_34o1m")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": ExtResource("4_4awot")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": ExtResource("5_etobg")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": ExtResource("6_kbrsm")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": ExtResource("7_a4rx2")
|
|
|
|
|
}],
|
|
|
|
|
"loop": true,
|
|
|
|
|
"name": &"default",
|
|
|
|
|
"speed": 5.0
|
|
|
|
|
}]
|
|
|
|
|
|
2025-09-16 00:28:49 +02:00
|
|
|
[node name="Ghost" type="Area2D"]
|
2025-09-16 16:39:03 +02:00
|
|
|
z_index = 1
|
2025-09-17 17:18:28 +02:00
|
|
|
scale = Vector2(0.8, 0.8)
|
2025-09-16 19:12:40 +02:00
|
|
|
collision_layer = 0
|
|
|
|
|
collision_mask = 4
|
2025-09-16 00:28:49 +02:00
|
|
|
script = ExtResource("1_6attn")
|
|
|
|
|
|
2025-09-16 14:59:40 +02:00
|
|
|
[node name="EnemyHurtbox" parent="." instance=ExtResource("2_34o1m")]
|
|
|
|
|
max_hp = 50
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyHurtbox"]
|
|
|
|
|
scale = Vector2(6, 6)
|
|
|
|
|
shape = SubResource("CircleShape2D_6attn")
|
|
|
|
|
|
2025-09-18 02:57:31 +02:00
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
|
sprite_frames = SubResource("SpriteFrames_je28r")
|
|
|
|
|
frame_progress = 0.0063938
|
2025-09-16 00:28:49 +02:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2025-09-17 18:05:43 +02:00
|
|
|
scale = Vector2(5, 5)
|
2025-09-16 00:28:49 +02:00
|
|
|
shape = SubResource("CircleShape2D_6attn")
|
2025-09-16 11:41:34 +02:00
|
|
|
|
|
|
|
|
[node name="EarthAligner" parent="." instance=ExtResource("3_obmiq")]
|
2025-09-16 14:59:40 +02:00
|
|
|
|
|
|
|
|
[connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_damage_taken"]
|
|
|
|
|
[connection signal="died" from="EnemyHurtbox" to="." method="_on_death"]
|