117 lines
3.3 KiB
Plaintext
117 lines
3.3 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://0d4qe2gqj0g7"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://ckjfv5xy1he2u" path="res://Scenes/coin.gd" id="1_2qo34"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://cwwd4so0n5pvj" path="res://Assets/Pickups/coin.png" id="2_jgi06"]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sgwqp"]
|
||
|
|
size = Vector2(10, 4)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g537i"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(0, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h2p6v"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(16, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ffmqm"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(32, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_81h6x"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(48, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qbp07"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(64, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2l7mo"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(80, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q30xt"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(96, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7w2r2"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(112, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tthw5"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(128, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6pu15"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(144, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vgc30"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(160, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qtgto"]
|
||
|
|
atlas = ExtResource("2_jgi06")
|
||
|
|
region = Rect2(176, 0, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_oov8j"]
|
||
|
|
animations = [{
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_g537i")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_h2p6v")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_ffmqm")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_81h6x")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_qbp07")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_2l7mo")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_q30xt")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_7w2r2")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_tthw5")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_6pu15")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_vgc30")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_qtgto")
|
||
|
|
}],
|
||
|
|
"loop": 1,
|
||
|
|
"name": &"coin_twirl",
|
||
|
|
"speed": 12.0
|
||
|
|
}]
|
||
|
|
|
||
|
|
[node name="coin" type="Area2D" unique_id=1463876970]
|
||
|
|
script = ExtResource("1_2qo34")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=282956551]
|
||
|
|
scale = Vector2(-1.0499984, 2.3999982)
|
||
|
|
shape = SubResource("RectangleShape2D_sgwqp")
|
||
|
|
debug_color = Color(0.9064841, 0.22817236, 0.5106338, 0.41960785)
|
||
|
|
|
||
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1656877505]
|
||
|
|
texture_filter = 1
|
||
|
|
scale = Vector2(1.0200001, 0.9375)
|
||
|
|
sprite_frames = SubResource("SpriteFrames_oov8j")
|
||
|
|
animation = &"coin_twirl"
|
||
|
|
autoplay = "coin_twirl"
|
||
|
|
|
||
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|