-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoin.tscn
94 lines (78 loc) · 2.73 KB
/
coin.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[gd_scene load_steps=14 format=3 uid="uid://dll17n14g268v"]
[ext_resource type="Script" path="res://coin.gd" id="1_ooegn"]
[ext_resource type="Texture2D" uid="uid://nffoy5jcqji" path="res://assets/Props/CoinAnim.png" id="2_x8syq"]
[ext_resource type="AudioStream" uid="uid://bgp1b3ry3ijrp" path="res://assets/Sound/levelup.ogg" id="3_4ju0p"]
[sub_resource type="AtlasTexture" id="AtlasTexture_l68mt"]
atlas = ExtResource("2_x8syq")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_q240k"]
atlas = ExtResource("2_x8syq")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_q7c4k"]
atlas = ExtResource("2_x8syq")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1ry01"]
atlas = ExtResource("2_x8syq")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1sj5k"]
atlas = ExtResource("2_x8syq")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_vbaat"]
atlas = ExtResource("2_x8syq")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_er0qn"]
atlas = ExtResource("2_x8syq")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ceiu3"]
atlas = ExtResource("2_x8syq")
region = Rect2(112, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_c2fpp"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_l68mt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q240k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q7c4k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1ry01")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1sj5k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vbaat")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_er0qn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ceiu3")
}],
"loop": false,
"name": &"disappear",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_warnw"]
radius = 4.47214
[node name="Coin" type="Area2D" groups=["Coins"]]
scale = Vector2(4, 4)
script = ExtResource("1_ooegn")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -1)
sprite_frames = SubResource("SpriteFrames_c2fpp")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_warnw")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_4ju0p")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]