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

74 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2024-09-16 23:25:08 +03:00
[gd_scene load_steps=8 format=3 uid="uid://cjus07bbbn4wd"]
2024-09-16 23:25:08 +03:00
[ext_resource type="Script" path="res://puzzles/box/box.gd" id="1_d6g12"]
[ext_resource type="Texture2D" uid="uid://br4mm65ok0dfl" path="res://puzzles/assets/box.png" id="1_myqej"]
2024-09-16 23:25:08 +03:00
[ext_resource type="AudioStream" uid="uid://bnpey4rox545e" path="res://scenes/assets/jingles/hit.wav" id="3_3ug4u"]
[sub_resource type="Animation" id="Animation_21bg4"]
resource_name = "RESET"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".: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_db20y"]
resource_name = "complete"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
2024-09-16 23:25:08 +03:00
"times": PackedFloat32Array(0.05, 0.2, 0.35, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_g7bql"]
_data = {
"RESET": SubResource("Animation_21bg4"),
"complete": SubResource("Animation_db20y")
}
2024-09-16 23:25:08 +03:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ptq6k"]
size = Vector2(8, 8)
[node name="Box" type="StaticBody2D"]
z_index = 10
collision_layer = 2
script = ExtResource("1_d6g12")
2024-09-14 22:50:30 +03:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Sprite2D")
libraries = {
"": SubResource("AnimationLibrary_g7bql")
}
autoplay = "RESET"
2024-09-14 22:50:30 +03:00
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("1_myqej")
hframes = 5
2024-09-16 23:25:08 +03:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_ptq6k")
[node name="RayCast2D" type="RayCast2D" parent="."]
target_position = Vector2(0, 8)
collision_mask = 3
collide_with_areas = true
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_3ug4u")