The_Dark_Side_of_Earth/enemies/ghost.tscn

34 lines
1.3 KiB
Text

[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://utils/enemy_hurtbox.tscn" id="2_34o1m"]
[ext_resource type="Texture2D" uid="uid://d3b5hmhjw2jyc" path="res://enemies/ghost animation/Ghost 1.png" id="3_34o1m"]
[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"]
z_index = 1
scale = Vector2(0.8, 0.8)
collision_layer = 0
collision_mask = 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("3_34o1m")
[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"]