-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcoin.tscn
87 lines (71 loc) · 2.66 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
[gd_scene load_steps=13 format=3 uid="uid://bkce7bexplq85"]
[ext_resource type="Script" path="res://coin.gd" id="1_vac1i"]
[ext_resource type="Texture2D" uid="uid://b2ej78p3u1sxr" path="res://art/ui/coin-drop.png" id="2_h488a"]
[ext_resource type="Shader" path="res://shaders/outline.gdshader" id="2_qhc0s"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_xsqh3"]
shader = ExtResource("2_qhc0s")
shader_parameter/line_color = Color(1, 1, 1, 1)
shader_parameter/enabled = false
[sub_resource type="AtlasTexture" id="AtlasTexture_fxy5n"]
atlas = ExtResource("2_h488a")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_iv18m"]
atlas = ExtResource("2_h488a")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kktqj"]
atlas = ExtResource("2_h488a")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_t5i2d"]
atlas = ExtResource("2_h488a")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_0hvdb"]
atlas = ExtResource("2_h488a")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_6yswj"]
atlas = ExtResource("2_h488a")
region = Rect2(80, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_v6c7u"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fxy5n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iv18m")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kktqj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t5i2d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0hvdb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6yswj")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_y7qrg"]
radius = 10.0499
[node name="Coin" type="RigidBody2D"]
collision_layer = 0
collision_mask = 0
lock_rotation = true
script = ExtResource("1_vac1i")
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_xsqh3")
sprite_frames = SubResource("SpriteFrames_v6c7u")
autoplay = "default"
frame_progress = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_y7qrg")
[node name="CoinClick" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="CoinClick"]
shape = SubResource("CircleShape2D_y7qrg")
[connection signal="input_event" from="CoinClick" to="." method="_on_area_2d_input_event"]
[connection signal="mouse_entered" from="CoinClick" to="." method="_on_coin_click_mouse_entered"]
[connection signal="mouse_exited" from="CoinClick" to="." method="_on_coin_click_mouse_exited"]