Files
retromariogodot/scenes/coin.tscn
T
2024-07-28 21:20:05 +02:00

60 lines
1.6 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://nm5keea43u56"]
[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_lffao"]
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_qn7es"]
[sub_resource type="AtlasTexture" id="AtlasTexture_7xy4l"]
atlas = ExtResource("1_lffao")
region = Rect2(124, 94, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_d5dm6"]
atlas = ExtResource("1_lffao")
region = Rect2(154, 94, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_y8lq8"]
atlas = ExtResource("1_lffao")
region = Rect2(184, 94, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_8a022"]
atlas = ExtResource("1_lffao")
region = Rect2(214, 94, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_4nuhx"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7xy4l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d5dm6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y8lq8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8a022")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_vpcnk"]
radius = 7.0
[node name="Coin" type="Area2D"]
collision_mask = 2
script = ExtResource("1_qn7es")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(8, -8)
sprite_frames = SubResource("SpriteFrames_4nuhx")
animation = &"idle"
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(8, -8)
shape = SubResource("CircleShape2D_vpcnk")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]