-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWorld.tscn
72 lines (61 loc) · 1.9 KB
/
World.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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://World.gd" type="Script" id=1]
[ext_resource path="res://Dino.tscn" type="PackedScene" id=2]
[ext_resource path="res://Floor.tscn" type="PackedScene" id=3]
[ext_resource path="res://reload.png" type="Texture" id=4]
[node name="World" type="Node"]
script = ExtResource( 1 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="Floor1" parent="." instance=ExtResource( 3 )]
position = Vector2( 0, 225 )
[node name="Floor2" parent="." instance=ExtResource( 3 )]
position = Vector2( 0, 225 )
[node name="SpeedTimer" type="Timer" parent="."]
wait_time = 20.0
[node name="Dino" parent="." instance=ExtResource( 2 )]
position = Vector2( 70, 200 )
z_index = 1
[node name="CactusTimer" type="Timer" parent="."]
[node name="ScoreLabel" type="Label" parent="."]
margin_left = 408.0
margin_right = 618.0
margin_bottom = 37.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "score: 0"
align = 2
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GameOverLabel" type="Label" parent="."]
margin_top = 90.0
margin_right = 640.0
margin_bottom = 127.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Game Over"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" type="Button" parent="GameOverLabel"]
margin_left = 299.0
margin_top = 29.0
margin_right = 341.0
margin_bottom = 64.0
icon = ExtResource( 4 )
flat = true
expand_icon = true
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="timeout" from="SpeedTimer" to="." method="_on_Speed_Timer_timeout"]
[connection signal="death" from="Dino" to="." method="_on_Dino_death"]
[connection signal="timeout" from="CactusTimer" to="." method="_on_CactusTimer_timeout"]
[connection signal="pressed" from="GameOverLabel/Button" to="." method="_on_Button_pressed"]