This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
gbjam12/puzzles/box/box_reset.tscn

71 lines
1.9 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://dyllmgs8q1voh"]
[ext_resource type="Texture2D" uid="uid://b4i416bsd62n1" path="res://puzzles/assets/box-reset.png" id="1_eosti"]
[ext_resource type="Script" path="res://puzzles/box/box_reset.gd" id="1_nqwqa"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_g4f6l"]
size = Vector2(6, 6)
[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="BoxReset" type="Area2D"]
collision_layer = 4
script = ExtResource("1_nqwqa")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("1_eosti")
hframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_g4f6l")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_78s6f")
}
autoplay = "active"
[node name="ResetTimer" type="Timer" parent="."]
wait_time = 0.25
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="ResetTimer" to="." method="_on_reset_timer_timeout"]