49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://bm04qp5vgbi10"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/Flag.gd" id="1_3p67j"]
|
|
[ext_resource type="PackedScene" uid="uid://c0r61y2b3pt4m" path="res://scenes/levels/level_2.tscn" id="2_u50ce"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ihwdr"]
|
|
size = Vector2(6, 201)
|
|
|
|
[sub_resource type="Animation" id="Animation_ivwqs"]
|
|
resource_name = "change_scene"
|
|
length = 4.0
|
|
tracks/0/type = "method"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(4),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"load_new_scene"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_adywb"]
|
|
_data = {
|
|
"change_scene": SubResource("Animation_ivwqs")
|
|
}
|
|
|
|
[node name="Flag" type="Area2D"]
|
|
position = Vector2(3176, -19)
|
|
collision_layer = 32769
|
|
collision_mask = 2
|
|
script = ExtResource("1_3p67j")
|
|
load_level = ExtResource("2_u50ce")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -98.5)
|
|
shape = SubResource("RectangleShape2D_ihwdr")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_adywb")
|
|
}
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|