[gd_scene load_steps=8 format=3 uid="uid://cjus07bbbn4wd"] [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"] [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 = { "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") } [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") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] root_node = NodePath("../Sprite2D") libraries = { "": SubResource("AnimationLibrary_g7bql") } autoplay = "RESET" [node name="Sprite2D" type="Sprite2D" parent="."] texture_filter = 1 texture = ExtResource("1_myqej") hframes = 5 [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")