70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
[gd_scene format=3 uid="uid://dsrjdmod7iy0y"]
|
|
|
|
[ext_resource type="Script" uid="uid://dudyiyynt2qea" path="res://Collectable/collectable.gd" id="1_jwt8q"]
|
|
[ext_resource type="Texture2D" uid="uid://c0j2r3l4wjpmw" path="res://Collectable/assets/key.png" id="2_jwt8q"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_skgro"]
|
|
size = Vector2(6.785714, 14.642856)
|
|
|
|
[sub_resource type="Animation" id="Animation_wxffg"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("KeyWhite: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_l6fen"]
|
|
resource_name = "idle"
|
|
length = 1.8333
|
|
loop_mode = 2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("KeyWhite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.16666667, 0.33333334, 0.5, 0.6666667, 0.8333333, 1, 1.1666666, 1.3333334, 1.5, 1.6666666, 1.8333),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4iwru"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_wxffg"),
|
|
&"idle": SubResource("Animation_l6fen")
|
|
}
|
|
|
|
[node name="Key" type="Area2D" unique_id=1724399962]
|
|
collision_layer = 4
|
|
collision_mask = 0
|
|
monitoring = false
|
|
script = ExtResource("1_jwt8q")
|
|
positionLeft = Vector2(1, 1.8)
|
|
positionRight = Vector2(-2, 1.8)
|
|
positionUp = Vector2(-6, 2)
|
|
positionDown = Vector2(3, 1.5)
|
|
|
|
[node name="KeyWhite" type="Sprite2D" parent="." unique_id=1730512806]
|
|
scale = Vector2(1.3, 1.3)
|
|
texture = ExtResource("2_jwt8q")
|
|
hframes = 12
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1344785112]
|
|
position = Vector2(0.49999982, 0.49999893)
|
|
scale = Vector2(2.8, 2.8)
|
|
shape = SubResource("RectangleShape2D_skgro")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1231132347]
|
|
libraries/ = SubResource("AnimationLibrary_4iwru")
|
|
autoplay = &"idle"
|