-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
78 lines (56 loc) · 2.03 KB
/
Main.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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/Main.gd" type="Script" id=1]
[ext_resource path="res://Track.tscn" type="PackedScene" id=2]
[ext_resource path="res://Cone.tscn" type="PackedScene" id=3]
[ext_resource path="res://Player.tscn" type="PackedScene" id=4]
[ext_resource path="res://audio/Plateia.ogg" type="AudioStream" id=5]
[node name="Main" type="Node2D"]
position = Vector2( 0, 80 )
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
Track = ExtResource( 2 )
Obstacle = ExtResource( 3 )
[node name="Tracks" type="Node2D" parent="." index="0"]
[node name="Obstacles" type="Node2D" parent="." index="1"]
[node name="StartPosition" type="Position2D" parent="." index="2"]
position = Vector2( 70, 320 )
_sections_unfolded = [ "Transform" ]
[node name="Player" parent="." index="3" instance=ExtResource( 4 )]
[node name="GameOverTimer" type="Timer" parent="." index="4"]
process_mode = 1
wait_time = 1.5
one_shot = true
autostart = false
[node name="Score" type="Label" parent="." index="5"]
anchor_left = 0.5
anchor_top = 0.0
anchor_right = 0.5
anchor_bottom = 0.0
margin_left = 522.0
margin_top = -60.0
margin_right = 672.0
margin_bottom = -35.0
rect_pivot_offset = Vector2( 0, 0 )
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "Margin", "Rect" ]
[node name="ScoreTimer" type="Timer" parent="." index="6"]
process_mode = 1
wait_time = 1.0
one_shot = false
autostart = false
[node name="Audience" type="AudioStreamPlayer" parent="." index="7"]
stream = ExtResource( 5 )
volume_db = -3.0
autoplay = true
mix_target = 0
bus = "Master"
[connection signal="game_over" from="." to="Player" method="_on_Main_game_over"]
[connection signal="new_game" from="." to="Player" method="_on_Main_new_game"]
[connection signal="timeout" from="GameOverTimer" to="." method="_on_GameOverTimer_timeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]