Added enemy movement randomization
This commit is contained in:
+12
-1
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dgc0087kvarx6"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dgc0087kvarx6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c6gpm3edyr4nu" path="res://game/passage.gd" id="1_ltkyg"]
|
||||
[ext_resource type="PackedScene" uid="uid://cpn5x0ijgl7ei" path="res://game/controllers/enemy_swamp_controller.tscn" id="2_72vqi"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_ltkyg"]
|
||||
|
||||
@@ -32,3 +33,13 @@ position = Vector2(640, 180)
|
||||
rotation = -1.5707964
|
||||
shape = SubResource("WorldBoundaryShape2D_ltkyg")
|
||||
one_way_collision = true
|
||||
|
||||
[node name="EnemySwampController" parent="." node_paths=PackedStringArray("passage") instance=ExtResource("2_72vqi")]
|
||||
passage = NodePath("..")
|
||||
|
||||
[node name="EnemyTimer" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="EnemyTimer" to="." method="_on_enemy_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user