2025-09-16 14:59:40 +02:00
|
|
|
[gd_scene load_steps=6 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-16 00:28:49 +02:00
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6attn"]
|
|
|
|
|
|
|
|
|
|
[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-16 00:28:49 +02:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2025-09-17 15:59:14 +02:00
|
|
|
texture = ExtResource("3_34o1m")
|
2025-09-16 00:28:49 +02:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
scale = Vector2(6, 6)
|
|
|
|
|
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"]
|