summaryrefslogtreecommitdiff
path: root/player/opponent.tscn
blob: 92d0af609020e7a415f5359eb15cbafc39abd8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"]