From 1c984e23c3969069fdd0ca548a1586ff1eae99c7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Apr 2022 08:20:35 +0200 Subject: [PATCH] :wrench: Make the basic enemy Damageable --- src/entities/Enemy.tscn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/entities/Enemy.tscn b/src/entities/Enemy.tscn index 26cc8a3..40b0e94 100644 --- a/src/entities/Enemy.tscn +++ b/src/entities/Enemy.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://src/mechanics/Black.png" type="Texture" id=1] [ext_resource path="res://src/entities/behaviours/ErraticMovement.tscn" type="PackedScene" id=2] [ext_resource path="res://src/entities/behaviours/AttractedTo.tscn" type="PackedScene" id=3] +[ext_resource path="res://src/entities/behaviours/Damageable.tscn" type="PackedScene" id=4] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 16, 16 ) @@ -18,3 +19,5 @@ texture = ExtResource( 1 ) [node name="AttractedTo" parent="." instance=ExtResource( 3 )] [node name="ErraticMovement" parent="." instance=ExtResource( 2 )] + +[node name="Damageable" parent="." instance=ExtResource( 4 )]