lakewood/Assets/Collectables/coin.tscn

67 lines
1.9 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=10 format=3 uid="uid://ctysf55pres8y"]
[ext_resource type="Texture2D" uid="uid://dj7grfg4awrf6" path="res://Assets/Collectables/GoldCoin.png" id="1_6uh7u"]
[ext_resource type="Script" path="res://Scripts/coin.gd" id="1_isgrf"]
[sub_resource type="AtlasTexture" id="AtlasTexture_6apv0"]
atlas = ExtResource("1_6uh7u")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_8md4o"]
atlas = ExtResource("1_6uh7u")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ai3ca"]
atlas = ExtResource("1_6uh7u")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_sh070"]
atlas = ExtResource("1_6uh7u")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_pi3db"]
atlas = ExtResource("1_6uh7u")
region = Rect2(64, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_iigen"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6apv0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8md4o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ai3ca")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sh070")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pi3db")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_piars"]
[node name="Coin" type="Area2D"]
collision_mask = 2
script = ExtResource("1_isgrf")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(3, 3)
sprite_frames = SubResource("SpriteFrames_iigen")
autoplay = "default"
frame_progress = 0.137011
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(2.08, 2.08)
shape = SubResource("CircleShape2D_piars")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_entered" from="." to="CollisionShape2D" method="_on_coin_body_entered"]