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_switch.tscn

64 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-09-16 23:25:08 +03:00
[gd_scene load_steps=7 format=3 uid="uid://c2qq84wh76mkx"]
2024-09-16 23:25:08 +03:00
[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)
2024-09-14 22:50:30 +03:00
[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 = {
2024-09-14 22:50:30 +03:00
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
2024-09-14 22:50:30 +03:00
"values": [0]
}
2024-09-14 22:50:30 +03:00
[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 = {
2024-09-14 22:50:30 +03:00
"times": PackedFloat32Array(0, 0.25),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
2024-09-14 22:50:30 +03:00
"values": [0, 1]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_78s6f"]
_data = {
"RESET": SubResource("Animation_615sy"),
"active": SubResource("Animation_33k1i")
}
[node name="BoxSwitch" type="Area2D"]
2024-09-16 23:25:08 +03:00
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"
2024-09-16 23:25:08 +03:00
[connection signal="body_entered" from="." to="." method="_on_body_entered"]