2024-10-01 15:56:30 +02:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cp43g3amm8a6f"]
|
|
|
|
|
2024-11-04 19:10:10 +01:00
|
|
|
[ext_resource type="Script" path="res://scenes/hurdle/hurdle.gd" id="1_e0hqe"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bp48x77dixrme" path="res://scenes/hurdle/hurdle.png" id="2_thg8w"]
|
2024-10-01 15:56:30 +02:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_orpyb"]
|
|
|
|
radius = 5.0
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_r1tmj"]
|
2024-11-10 19:51:00 +01:00
|
|
|
radius = 6.0
|
2024-10-01 15:56:30 +02:00
|
|
|
|
2024-11-04 19:10:10 +01:00
|
|
|
[node name="hurdle" type="CharacterBody2D"]
|
2024-10-01 15:56:30 +02:00
|
|
|
collision_layer = 3
|
|
|
|
collision_mask = 3
|
|
|
|
script = ExtResource("1_e0hqe")
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
2024-11-10 19:51:00 +01:00
|
|
|
position = Vector2(-8, -15)
|
2024-10-01 15:56:30 +02:00
|
|
|
texture = ExtResource("2_thg8w")
|
2024-11-10 19:51:00 +01:00
|
|
|
centered = false
|
2024-10-01 15:56:30 +02:00
|
|
|
hframes = 5
|
2024-10-21 21:22:40 +02:00
|
|
|
vframes = 3
|
2024-11-10 19:51:00 +01:00
|
|
|
frame = 8
|
2024-10-21 21:22:40 +02:00
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(0, 0, 80, 48)
|
2024-10-01 15:56:30 +02:00
|
|
|
|
|
|
|
[node name="collision" type="CollisionShape2D" parent="."]
|
2024-11-10 19:51:00 +01:00
|
|
|
position = Vector2(0, -5)
|
2024-10-01 15:56:30 +02:00
|
|
|
shape = SubResource("CircleShape2D_orpyb")
|
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
position = Vector2(0, -7)
|
|
|
|
collision_layer = 3
|
|
|
|
collision_mask = 3
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
2024-11-10 19:51:00 +01:00
|
|
|
position = Vector2(0, 1)
|
2024-10-01 15:56:30 +02:00
|
|
|
shape = SubResource("CircleShape2D_r1tmj")
|
|
|
|
debug_color = Color(0.906661, 0.254677, 0.42413, 0.42)
|
2024-11-10 19:51:00 +01:00
|
|
|
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
|
|
position = Vector2(3, -4)
|
|
|
|
rect = Rect2(-10, -10, 14, 14)
|
|
|
|
|
|
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="queue_free"]
|