DariusGodotGame/dariusgodotproject/scenes/coin.tscn

116 lines
3.2 KiB
Plaintext

[gd_scene load_steps=17 format=3 uid="uid://ix6oxq0kduyx"]
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_kw45h"]
[ext_resource type="Texture2D" uid="uid://ctbrb4hwshrkl" path="res://assets/graphics/collectibles/coin.png" id="1_tmebn"]
[sub_resource type="AtlasTexture" id="AtlasTexture_irnie"]
atlas = ExtResource("1_tmebn")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jhywm"]
atlas = ExtResource("1_tmebn")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_6rvld"]
atlas = ExtResource("1_tmebn")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_cywpa"]
atlas = ExtResource("1_tmebn")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_icagv"]
atlas = ExtResource("1_tmebn")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_d4baf"]
atlas = ExtResource("1_tmebn")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ctthx"]
atlas = ExtResource("1_tmebn")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_d8p0y"]
atlas = ExtResource("1_tmebn")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1gnvv"]
atlas = ExtResource("1_tmebn")
region = Rect2(128, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_h2wnc"]
atlas = ExtResource("1_tmebn")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_pri0k"]
atlas = ExtResource("1_tmebn")
region = Rect2(160, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_gltpj"]
atlas = ExtResource("1_tmebn")
region = Rect2(176, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_gsi5m"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_irnie")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jhywm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6rvld")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cywpa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_icagv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d4baf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ctthx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d8p0y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1gnvv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h2wnc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pri0k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gltpj")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_4cxdg"]
radius = 3.0
[node name="Area2D" type="Area2D" groups=["collectibles"]]
script = ExtResource("1_kw45h")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_gsi5m")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.730621
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_4cxdg")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]