70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
[gd_scene format=3 uid="uid://t3elp1lpdt3p"]
|
|
|
|
[ext_resource type="Script" uid="uid://dudyiyynt2qea" path="res://Collectable/collectable.gd" id="1_iowtp"]
|
|
[ext_resource type="Texture2D" uid="uid://cxmpqwuu0i6by" path="res://Collectable/assets/cake.png" id="2_iowtp"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_skgro"]
|
|
size = Vector2(8.928572, 8.571428)
|
|
|
|
[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="Cake" type="Area2D" unique_id=1724399962]
|
|
collision_layer = 4
|
|
collision_mask = 0
|
|
monitoring = false
|
|
script = ExtResource("1_iowtp")
|
|
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]
|
|
position = Vector2(-1.1920929e-07, -2.3841858e-07)
|
|
scale = Vector2(0.840625, 0.840625)
|
|
texture = ExtResource("2_iowtp")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1344785112]
|
|
position = Vector2(-0.49999964, 0)
|
|
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"
|