129 lines
3.5 KiB
Plaintext
129 lines
3.5 KiB
Plaintext
[gd_scene format=3 uid="uid://mhhmhiv68pl4"]
|
|
|
|
[ext_resource type="Script" uid="uid://ccc81ck60gyxg" path="res://scripts/apple.gd" id="1_7vr8k"]
|
|
[ext_resource type="Texture2D" uid="uid://dbxb602buq7wu" path="res://assets/sprites/fruit.png" id="1_h071m"]
|
|
[ext_resource type="AudioStream" uid="uid://gtthuaxi63gy" path="res://assets/sounds/apple_powerup.wav" id="3_3dmh2"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_7vr8k"]
|
|
radius = 7.0
|
|
|
|
[sub_resource type="Animation" id="Animation_pg1xk"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("PickupZone:disabled")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("PickupSound:playing")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_a7wfc"]
|
|
resource_name = "pickup"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("PickupZone:disabled")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("PickupSound:playing")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/3/type = "method"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath(".")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kxxqw"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_pg1xk"),
|
|
&"pickup": SubResource("Animation_a7wfc")
|
|
}
|
|
|
|
[node name="Apple" type="Area2D" unique_id=898321301]
|
|
collision_mask = 2
|
|
script = ExtResource("1_7vr8k")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1249274264]
|
|
texture = ExtResource("1_h071m")
|
|
region_enabled = true
|
|
region_rect = Rect2(2, 50, 11, 13)
|
|
|
|
[node name="PickupZone" type="CollisionShape2D" parent="." unique_id=1492815631]
|
|
shape = SubResource("CircleShape2D_7vr8k")
|
|
|
|
[node name="PickupSound" type="AudioStreamPlayer2D" parent="." unique_id=1451366560]
|
|
position = Vector2(1, 0)
|
|
stream = ExtResource("3_3dmh2")
|
|
bus = &"SFX"
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=2077470024]
|
|
libraries/ = SubResource("AnimationLibrary_kxxqw")
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|