64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://c2qq84wh76mkx"]
|
|
|
|
[ext_resource type="Script" path="res://puzzles/box/box_switch.gd" id="1_ixy7a"]
|
|
[ext_resource type="Texture2D" uid="uid://dmooh76emdwbh" path="res://puzzles/assets/box-switch.png" id="1_s5gx1"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_g4f6l"]
|
|
size = Vector2(8, 8)
|
|
|
|
[sub_resource type="Animation" id="Animation_615sy"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_33k1i"]
|
|
resource_name = "active"
|
|
length = 0.5
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [0, 1]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_78s6f"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_615sy"),
|
|
"active": SubResource("Animation_33k1i")
|
|
}
|
|
|
|
[node name="BoxSwitch" type="Area2D"]
|
|
script = ExtResource("1_ixy7a")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
texture = ExtResource("1_s5gx1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_g4f6l")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_78s6f")
|
|
}
|
|
autoplay = "active"
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|