diff options
Diffstat (limited to 'player/opponent.tscn')
-rw-r--r-- | player/opponent.tscn | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/player/opponent.tscn b/player/opponent.tscn new file mode 100644 index 0000000..92d0af6 --- /dev/null +++ b/player/opponent.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=3 format=3 uid="uid://d1h8psjxqge0a"] + +[ext_resource type="PackedScene" uid="uid://d21spw8y5yiuu" path="res://character/character.tscn" id="1_ykya6"] +[ext_resource type="Script" path="res://player/opponent.gd" id="2_pkqiw"] + +[node name="Opponent" instance=ExtResource("1_ykya6")] +script = ExtResource("2_pkqiw") +random_start_type = false + +[node name="Collision" parent="." index="1" groups=["opponent"]] +collision_layer = 2 + +[node name="RayUpLeft2" type="RayCast2D" parent="." index="6"] +position = Vector2(-6, 0) +target_position = Vector2(0, -10) +collision_mask = 512 + +[node name="RayUpRight2" type="RayCast2D" parent="." index="7"] +position = Vector2(6, 0) +target_position = Vector2(0, -10) +collision_mask = 512 + +[node name="VerticalTimer" type="Timer" parent="." index="10"] +one_shot = true +autostart = true + +[connection signal="timeout" from="VerticalTimer" to="." method="_on_vertical_timer_timeout"] |