-
Notifications
You must be signed in to change notification settings - Fork 1
/
Ring.tscn
91 lines (73 loc) · 3.09 KB
/
Ring.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
[gd_scene load_steps=5 format=1]
[ext_resource path="res://textures/ring.png" type="Texture" id=1]
[sub_resource type="ConvexPolygonShape2D" id=4]
custom_solver_bias = 0.0
points = Vector2Array( -3, -7.96248, 3, -7.96248, 5, -6.96248, 7, -4.96248, 8, -2.96248, 8, 3.03752, 7, 5.03752, 5, 7.03752, 3, 8.03752, -3, 8.03752, -5, 7.03752, -7, 5.03752, -8, 3.03752, -8, -2.96248, -7, -4.96248, -5, -6.96248 )
[sub_resource type="Animation" id=2]
resource/name = "collect"
length = 0.8
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("sprite:frame")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 0.2, 0.4, 0.6 ),
"transitions": FloatArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 4, 5, 6, 7 ]
}
[sub_resource type="Animation" id=3]
length = 0.8
loop = true
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("sprite:frame")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 0.2, 0.4, 0.6 ),
"transitions": FloatArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("polygon:polygon")
tracks/1/interp = 1
tracks/1/imported = false
tracks/1/keys = {
"times": FloatArray( 0, 0.2, 0.4, 0.6 ),
"transitions": FloatArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ Vector2Array( -3, -7.96248, 3, -7.96248, 5, -6.96248, 7, -4.96248, 8, -2.96248, 8, 3.03752, 7, 5.03752, 5, 7.03752, 3, 8.03752, -3, 8.03752, -5, 7.03752, -7, 5.03752, -8, 3.03752, -8, -2.96248, -7, -4.96248, -5, -6.96248 ), Vector2Array( -2, -7.96248, 2, -7.96248, 4, -6.96248, 5, -5.96248, 6, -3.96248, 6, 4.03752, 5, 6.03752, 4, 7.03752, 2, 8.03752, -2, 8.03752, -5, 5.03752, -6, 3.03752, -6, -2.96248, -5, -4.96248 ), Vector2Array( -1, -7.96248, 1, -7.96248, 3, -5.96248, 3, 6.03752, 1, 8.03752, -1, 8.03752, -3, 6.03752, -3, -5.96248 ), Vector2Array( -2, -7.96248, 2, -7.96248, 5, -4.96248, 6, -2.96248, 6, 3.03752, 5, 5.03752, 2, 8.03752, -2, 8.03752, -4, 7.03752, -5, 6.03752, -6, 4.03752, -6, -3.96248, -5, -5.96248, -4, -6.96248 ) ]
}
[node name="Ring" type="Node2D"]
[node name="area" type="Area2D" parent="."]
input/pickable = true
shapes/0/shape = SubResource( 4 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, -0.0375242 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
[node name="sprite" type="Sprite" parent="area"]
texture = ExtResource( 1 )
hframes = 8
[node name="animation" type="AnimationPlayer" parent="area"]
playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/collect = SubResource( 2 )
anims/rotation = SubResource( 3 )
playback/active = true
playback/speed = 1.0
blend_times = [ ]
autoplay = "rotation"
[node name="polygon" type="CollisionPolygon2D" parent="area"]
transform/pos = Vector2( 0, -0.0375242 )
build_mode = 0
polygon = Vector2Array( -3, -7.96248, 3, -7.96248, 5, -6.96248, 7, -4.96248, 8, -2.96248, 8, 3.03752, 7, 5.03752, 5, 7.03752, 3, 8.03752, -3, 8.03752, -5, 7.03752, -7, 5.03752, -8, 3.03752, -8, -2.96248, -7, -4.96248, -5, -6.96248 )
shape_range = Vector2( 0, 0 )
trigger = false