74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
[gd_scene format=3 uid="uid://bwwv5c0bsfmgh"]
|
|
|
|
[ext_resource type="Script" uid="uid://csmkrqtuurkyo" path="res://coin.gd" id="1_0t63x"]
|
|
[ext_resource type="Texture2D" uid="uid://c7kuxextst4j0" path="res://sprites/coin/MonedaD.png" id="1_d5gmh"]
|
|
[ext_resource type="AudioStream" uid="uid://cc8r8h11qeq74" path="res://sounds/chieuk-coin-257878.mp3" id="3_v7riw"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_0t63x"]
|
|
radius = 7.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v7riw"]
|
|
atlas = ExtResource("1_d5gmh")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pdq0q"]
|
|
atlas = ExtResource("1_d5gmh")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w14il"]
|
|
atlas = ExtResource("1_d5gmh")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h4etq"]
|
|
atlas = ExtResource("1_d5gmh")
|
|
region = Rect2(48, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o4fra"]
|
|
atlas = ExtResource("1_d5gmh")
|
|
region = Rect2(64, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_te2np"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v7riw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pdq0q")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_w14il")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_h4etq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o4fra")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="Coin" type="Area2D" unique_id=1353750555 node_paths=PackedStringArray("coin_sound", "sprite")]
|
|
collision_layer = 2
|
|
script = ExtResource("1_0t63x")
|
|
coin_sound = NodePath("coin_sound")
|
|
sprite = NodePath("sprite")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1032039025]
|
|
scale = Vector2(4, 4)
|
|
shape = SubResource("CircleShape2D_0t63x")
|
|
|
|
[node name="sprite" type="AnimatedSprite2D" parent="." unique_id=168181176]
|
|
scale = Vector2(4, 4)
|
|
sprite_frames = SubResource("SpriteFrames_te2np")
|
|
autoplay = "default"
|
|
frame_progress = 0.9891366
|
|
|
|
[node name="coin_sound" type="AudioStreamPlayer" parent="." unique_id=2097358849]
|
|
stream = ExtResource("3_v7riw")
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
[connection signal="finished" from="coin_sound" to="." method="_on_coin_sound_finished"]
|