-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcoin.tscn
40 lines (33 loc) · 1.44 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
[gd_scene load_steps=11 format=2]
[ext_resource path="res://coin.gd" type="Script" id=1]
[ext_resource path="res://sprites/coins/coin2.png" type="Texture" id=2]
[ext_resource path="res://sprites/coins/coinfullopp.png" type="Texture" id=3]
[ext_resource path="res://sprites/coins/coin3.png" type="Texture" id=4]
[ext_resource path="res://sprites/coins/coinfullopp3.png" type="Texture" id=5]
[ext_resource path="res://sprites/coins/coinrotatecommon.png" type="Texture" id=6]
[ext_resource path="res://sprites/coins/coin1.png" type="Texture" id=7]
[ext_resource path="res://sprites/coins/coinfullopp2.png" type="Texture" id=8]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4.18306, 4.49862 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 7 ), ExtResource( 2 ), ExtResource( 4 ), ExtResource( 6 ), ExtResource( 5 ), ExtResource( 8 ), ExtResource( 3 ) ],
"loop": true,
"name": "spin",
"speed": 10.0
} ]
[node name="coin" type="Area2D"]
collision_layer = 8
collision_mask = 17
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 0.00285721 )
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 0.092849, 0.0468099 )
scale = Vector2( 0.362926, 0.393678 )
frames = SubResource( 2 )
animation = "spin"
frame = 1
playing = true
[connection signal="body_entered" from="." to="." method="_on_coin_body_entered"]