[gd_scene load_steps=6 format=3 uid="uid://chu67ci7sl488"] [ext_resource type="Script" uid="uid://12jns4dppxxj" path="res://enemies/ghost.gd" id="1_6attn"] [ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://enemy_hurtbox.tscn" id="2_34o1m"] [ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="2_obmiq"] [ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_obmiq"] [sub_resource type="CircleShape2D" id="CircleShape2D_6attn"] [node name="Ghost" type="Area2D"] scale = Vector2(0.4, 0.4) script = ExtResource("1_6attn") [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") [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("2_obmiq") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] scale = Vector2(6, 6) shape = SubResource("CircleShape2D_6attn") [node name="EarthAligner" parent="." instance=ExtResource("3_obmiq")] [connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_damage_taken"] [connection signal="died" from="EnemyHurtbox" to="." method="_on_death"]