Enemy
made a basic enemy that can harm/kill the player.
This commit is contained in:
1 parent
2315add8ec
commit
bb9682cd16
6 files changed
+117
-4
No files matched your search
@@ -0,0 +1,32 @@
|
||||
[gd_scene format=3 uid="uid://bjk1cmuogswyd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2jmspsmp5wpm" path="res://scripts/enemy.gd" id="1_7p1mj"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
|
||||
size = Vector2(168, 167)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yg5ta"]
|
||||
size = Vector2(178, 168)
|
||||
|
||||
[node name="enemy" type="CharacterBody2D" unique_id=1471932521]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_7p1mj")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=519837051]
|
||||
offset_right = 169.0
|
||||
offset_bottom = 166.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1567529793]
|
||||
position = Vector2(85, 82)
|
||||
shape = SubResource("RectangleShape2D_aqe1g")
|
||||
|
||||
[node name="Timer" type="Timer" parent="." unique_id=356300230]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=461696644]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=72940614]
|
||||
position = Vector2(84, 79)
|
||||
shape = SubResource("RectangleShape2D_yg5ta")
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
Reference in new issue
Block a user