-
Notifications
You must be signed in to change notification settings - Fork 1
/
Camel.tscn
104 lines (92 loc) · 2.58 KB
/
Camel.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
95
96
97
98
99
100
101
102
103
104
[gd_scene load_steps=8 format=2]
[ext_resource path="res://XX_ONLY_Cameron_ONLY_XX/STATUS_BAR/CamelStats.gd" type="Script" id=1]
[ext_resource path="res://assets/Camel/camel-sheet-blurred.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 16.3667
height = 4.68988
[sub_resource type="Animation" id=2]
resource_name = "botleft"
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 12, 15 ]
}
[sub_resource type="Animation" id=3]
resource_name = "botright"
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 8, 11 ]
}
[sub_resource type="Animation" id=4]
resource_name = "topleft"
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0, 3 ]
}
[sub_resource type="Animation" id=5]
resource_name = "topright"
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 4, 7 ]
}
[node name="Camel" type="KinematicBody2D"]
position = Vector2( -0.214645, -8.15624 )
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0.790183, -7.69895 )
z_as_relative = false
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -2.98613, -5.79315 )
scale = Vector2( 0.05, 0.05 )
texture = ExtResource( 2 )
vframes = 4
hframes = 4
frame = 15
[node name="Timer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="ThirstDrain" type="Timer" parent="."]
wait_time = 3.0
autostart = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/botleft = SubResource( 2 )
anims/botright = SubResource( 3 )
anims/topleft = SubResource( 4 )
anims/topright = SubResource( 5 )
[connection signal="timeout" from="ThirstDrain" to="." method="_on_ThirstDrain_timeout"]