-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoin.tscn
66 lines (56 loc) · 1.81 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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Coin-sprites.tres" type="SpriteFrames" id=1]
[ext_resource path="res://Coin.gd" type="Script" id=2]
[ext_resource path="res://assets/sounds/powerUp2.ogg" type="AudioStream" id=3]
[sub_resource type="CircleShape2D" id=1]
radius = 46.0
[sub_resource type="Animation" id=2]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("AnimatedSprite:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ) ]
}
[sub_resource type="Animation" id=3]
resource_name = "bounce"
length = 0.4
tracks/0/type = "value"
tracks/0/path = NodePath("AnimatedSprite:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -186 ), Vector2( 0, -62 ) ]
}
[node name="Coin" type="Area2D"]
collision_layer = 8
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "spin"
frame = 1
playing = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/RESET = SubResource( 2 )
anims/bounce = SubResource( 3 )
[node name="CollectSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
volume_db = -8.0
[connection signal="body_entered" from="." to="." method="_on_coin_body_entered"]
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]