20 lines
617 B
Plaintext
20 lines
617 B
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://Scenes/Enemies/Enemy.gd" type="Script" id=1]
|
|
[ext_resource path="res://Scenes/Objects/Hurtbox.tscn" type="PackedScene" id=2]
|
|
|
|
[node name="Enemy" type="KinematicBody2D"]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
[node name="Collider" type="CollisionShape2D" parent="."]
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
[node name="Hurtbox" parent="." instance=ExtResource( 2 )]
|
|
collision_mask = 8
|
|
[connection signal="hit" from="Hurtbox" to="." method="_on_Hurtbox_hit"]
|