-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
114 lines (91 loc) · 4 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
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
105
106
107
108
109
110
111
112
113
114
[gd_scene load_steps=10 format=2]
[ext_resource path="res://player/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://level/counter.png" type="Texture" id=2]
[ext_resource path="res://FPSCounter.tscn" type="PackedScene" id=3]
[ext_resource path="res://Main.gd" type="Script" id=4]
[ext_resource path="res://level/wood_floor.png" type="Texture" id=5]
[ext_resource path="res://customer/CustomerSpawner.tscn" type="PackedScene" id=6]
[ext_resource path="res://level/Machine.tscn" type="PackedScene" id=7]
[ext_resource path="res://ui/GameOver.tscn" type="PackedScene" id=8]
[ext_resource path="res://fonts/button_font.tres" type="DynamicFont" id=9]
[node name="Main" type="Node2D"]
script = ExtResource( 4 )
[node name="Floor" type="Sprite" parent="."]
position = Vector2( 0, 370.614 )
scale = Vector2( 4, 4 )
z_index = -20
texture = ExtResource( 5 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 480, 270 )
[node name="Machine" parent="." instance=ExtResource( 7 )]
position = Vector2( 768, 104 )
[node name="Counter" type="Sprite" parent="."]
position = Vector2( 0, 176 )
scale = Vector2( 4, 4 )
z_index = -20
texture = ExtResource( 2 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 480, 64 )
[node name="Player" parent="." instance=ExtResource( 1 )]
position = Vector2( 1344, 150 )
[node name="CustomerSpawner" parent="." instance=ExtResource( 6 )]
spawn_height_perc = 1.0
[node name="SpawnTimer" parent="CustomerSpawner" index="0"]
wait_time = 5.0
[node name="FPSCounter" parent="." instance=ExtResource( 3 )]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 0.0
margin_bottom = 0.0
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer"]
anchor_right = 1.0
margin_bottom = 54.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/HBoxContainer"]
margin_right = 1920.0
margin_bottom = 54.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/margin_right = 10
custom_constants/margin_top = 10
[node name="Score" type="Label" parent="CanvasLayer/HBoxContainer/MarginContainer"]
margin_top = 10.0
margin_right = 1910.0
margin_bottom = 54.0
size_flags_horizontal = 3
size_flags_vertical = 1
custom_fonts/font = ExtResource( 9 )
text = "0"
align = 2
[node name="GameOver" parent="CanvasLayer" instance=ExtResource( 8 )]
modulate = Color( 1, 1, 1, 0 )
[node name="GameOver" parent="CanvasLayer/GameOver/VBoxContainer" index="0"]
margin_right = 1920.0
[node name="VBoxContainer" parent="CanvasLayer/GameOver/VBoxContainer" index="1"]
margin_right = 1920.0
[node name="SatisfiedCustomers" parent="CanvasLayer/GameOver/VBoxContainer/VBoxContainer" index="0"]
margin_right = 1920.0
[node name="SatisfiedCustomersCount" parent="CanvasLayer/GameOver/VBoxContainer/VBoxContainer" index="1"]
margin_right = 1920.0
[node name="HBoxContainer" parent="CanvasLayer/GameOver/VBoxContainer" index="2"]
margin_right = 1920.0
[node name="MainMenu" parent="CanvasLayer/GameOver/VBoxContainer/HBoxContainer" index="0"]
margin_left = 354.0
margin_right = 604.0
[node name="PlayAgain" parent="CanvasLayer/GameOver/VBoxContainer/HBoxContainer" index="1"]
margin_left = 1316.0
margin_right = 1566.0
[connection signal="out_of_ammo" from="Player" to="Machine" method="_on_Player_stunned" binds= [ true ]]
[connection signal="stun_ended" from="Player" to="Machine" method="_on_Player_stunned" binds= [ false ]]
[connection signal="stun_started" from="Player" to="Machine" method="_on_Player_stunned" binds= [ true ]]
[connection signal="customer_satisfied" from="CustomerSpawner" to="." method="_on_CustomerSpawner_customer_satisfied"]
[connection signal="button_up" from="CanvasLayer/GameOver/VBoxContainer/HBoxContainer/MainMenu" to="." method="_on_MainMenu_button_up"]
[connection signal="button_up" from="CanvasLayer/GameOver/VBoxContainer/HBoxContainer/PlayAgain" to="." method="_on_PlayAgain_button_up"]
[editable path="CustomerSpawner"]
[editable path="CanvasLayer/GameOver"]