JanGodotGame/scenes/coin.tscn

117 lines
3.2 KiB
Plaintext

[gd_scene load_steps=17 format=3 uid="uid://cey0ymp1n0iqe"]
[ext_resource type="Texture2D" uid="uid://cco2vhmejry0v" path="res://assets/graphics/collectibles/coin.png" id="1_c71mt"]
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_h4xkt"]
[sub_resource type="AtlasTexture" id="AtlasTexture_n1dcx"]
atlas = ExtResource("1_c71mt")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_13l51"]
atlas = ExtResource("1_c71mt")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_hahrw"]
atlas = ExtResource("1_c71mt")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_mfe8o"]
atlas = ExtResource("1_c71mt")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_71uln"]
atlas = ExtResource("1_c71mt")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_c7ty3"]
atlas = ExtResource("1_c71mt")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_n435u"]
atlas = ExtResource("1_c71mt")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_6uw02"]
atlas = ExtResource("1_c71mt")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_xlt2g"]
atlas = ExtResource("1_c71mt")
region = Rect2(128, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_367r4"]
atlas = ExtResource("1_c71mt")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_omldi"]
atlas = ExtResource("1_c71mt")
region = Rect2(160, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_74aet"]
atlas = ExtResource("1_c71mt")
region = Rect2(176, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_dwt5l"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_n1dcx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_13l51")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hahrw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mfe8o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_71uln")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c7ty3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n435u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6uw02")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xlt2g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_367r4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_omldi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_74aet")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_4xboy"]
radius = 5.0
[node name="Area2D" type="Area2D" groups=["collectibles"]]
script = ExtResource("1_h4xkt")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_dwt5l")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.32788
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_4xboy")
debug_color = Color(0.614132, 0.536519, 0.0596093, 0.42)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]