57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
|
[gd_scene load_steps=10 format=2]
|
||
|
|
||
|
[ext_resource path="res://imgs/coin.png" type="Texture" id=1]
|
||
|
[ext_resource path="res://Coin.gd" type="Script" id=2]
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id=1]
|
||
|
atlas = ExtResource( 1 )
|
||
|
region = Rect2( 0, 0, 32, 32 )
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id=2]
|
||
|
atlas = ExtResource( 1 )
|
||
|
region = Rect2( 32, 0, 32, 32 )
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id=3]
|
||
|
atlas = ExtResource( 1 )
|
||
|
region = Rect2( 64, 0, 32, 32 )
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id=4]
|
||
|
atlas = ExtResource( 1 )
|
||
|
region = Rect2( 0, 32, 32, 32 )
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id=5]
|
||
|
atlas = ExtResource( 1 )
|
||
|
region = Rect2( 32, 32, 32, 32 )
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id=6]
|
||
|
animations = [ {
|
||
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ],
|
||
|
"loop": true,
|
||
|
"name": "coin",
|
||
|
"speed": 5.0
|
||
|
} ]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id=7]
|
||
|
radius = 16.5576
|
||
|
|
||
|
[node name="Coin" type="RigidBody2D" groups=[
|
||
|
"coins",
|
||
|
]]
|
||
|
collision_mask = 2147483648
|
||
|
gravity_scale = 0.0
|
||
|
script = ExtResource( 2 )
|
||
|
|
||
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||
|
scale = Vector2( 3, 3 )
|
||
|
frames = SubResource( 6 )
|
||
|
animation = "coin"
|
||
|
playing = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
position = Vector2( -8.90899, -8.5749 )
|
||
|
shape = SubResource( 7 )
|
||
|
|
||
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
||
|
position = Vector2( -9.07603, -7.46128 )
|
||
|
scale = Vector2( 1.55125, 1.47886 )
|