108 lines
3.6 KiB
Plaintext
108 lines
3.6 KiB
Plaintext
[gd_scene format=3 uid="uid://bd3uiuggwfq2v"]
|
|
|
|
[ext_resource type="Script" uid="uid://dtuirhoxa1fkj" path="res://items/item_pickup/item_pickup.gd" id="1_0g51u"]
|
|
[ext_resource type="AudioStream" uid="uid://borbldx5nrrjp" path="res://items/item_pickup/item_pickup.wav" id="2_0rscd"]
|
|
[ext_resource type="Texture2D" uid="uid://bxqdnnk4dqnu5" path="res://player/sprites/Shadow.png" id="2_jl14n"]
|
|
[ext_resource type="Texture2D" uid="uid://dxf00vjmse6ab" path="res://items/sprites/items.png" id="2_tc5ok"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_0rscd"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7rq5k"]
|
|
atlas = ExtResource("2_tc5ok")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_jl14n"]
|
|
|
|
[sub_resource type="Animation" id="Animation_puw1c"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ShadowSprite:scale")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0.5, 0.5)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_bjvna"]
|
|
resource_name = "bounce"
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8),
|
|
"transitions": PackedFloat32Array(-2, -2, -2, -2, -2),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, -6), Vector2(0, 0), Vector2(0, -2), Vector2(0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ShadowSprite:scale")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8),
|
|
"transitions": PackedFloat32Array(-2, -2, -2, -2, -2),
|
|
"update": 0,
|
|
"values": [Vector2(0.5, 0.5), Vector2(0.2, 0.2), Vector2(0.5, 0.5), Vector2(0.4, 0.4), Vector2(0.5, 0.5)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_o0c3x"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_puw1c"),
|
|
&"bounce": SubResource("Animation_bjvna")
|
|
}
|
|
|
|
[node name="ItemPickup" type="CharacterBody2D" unique_id=320551238]
|
|
collision_layer = 0
|
|
collision_mask = 16
|
|
motion_mode = 1
|
|
script = ExtResource("1_0g51u")
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=1719100885]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=82383132]
|
|
shape = SubResource("CircleShape2D_0rscd")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1485596032]
|
|
texture = SubResource("AtlasTexture_7rq5k")
|
|
|
|
[node name="ShadowSprite" type="Sprite2D" parent="." unique_id=772537575]
|
|
modulate = Color(0, 0, 0, 0.34901962)
|
|
position = Vector2(0, 8)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("2_jl14n")
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=60991160]
|
|
stream = ExtResource("2_0rscd")
|
|
max_polyphony = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=721385119]
|
|
shape = SubResource("CircleShape2D_jl14n")
|
|
debug_color = Color(0.24937189, 0.6105543, 0.506212, 0.41960785)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1968131721]
|
|
libraries/ = SubResource("AnimationLibrary_o0c3x")
|
|
autoplay = &"bounce"
|