alai/godot/Collectables/Coin/Coin.tscn

36 lines
816 B
Plaintext
Raw Normal View History

[gd_scene load_steps=6 format=2]
2022-05-20 12:50:47 -04:00
[ext_resource path="res://assets/coin.png" type="Texture" id=1]
[sub_resource type="CircleShape2D" id=1]
radius = 6.0
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 18, 18 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 18, 0, 18, 18 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
2022-06-06 20:59:51 -04:00
"name": "spin",
2022-05-20 12:50:47 -04:00
"speed": 5.0
} ]
[node name="coin" type="Area2D"]
2022-05-24 15:23:29 -04:00
collision_layer = 4
2022-05-20 12:50:47 -04:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2022-05-24 15:23:29 -04:00
position = Vector2( 9, 9 )
2022-05-20 12:50:47 -04:00
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
2022-06-06 20:59:51 -04:00
animation = "spin"
2022-05-20 12:50:47 -04:00
playing = true
2022-05-24 15:23:29 -04:00
centered = false