This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgame.tscn
104 lines (81 loc) · 4.78 KB
/
game.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=12 format=3 uid="uid://cpr6dn54l3e84"]
[ext_resource type="Script" path="res://game.gd" id="1_54xge"]
[ext_resource type="Script" path="res://cybersnake/cybersnake_game.gd" id="2_8n276"]
[ext_resource type="Resource" uid="uid://ghli43cetrrd" path="res://cybersnake/default_game_conf.tres" id="3_1honf"]
[ext_resource type="PackedScene" uid="uid://0i6pfyt0gmrw" path="res://presentation/presentation.tscn" id="4_76qfm"]
[ext_resource type="Script" path="res://input/turn_input.gd" id="6_pok0c"]
[ext_resource type="Script" path="res://input/sprint_input.gd" id="7_2ildo"]
[ext_resource type="PackedScene" uid="uid://cawdem5fi3mwr" path="res://presentation/hud/hud.tscn" id="8_0l0tr"]
[ext_resource type="Script" path="res://hooks/state_hook.gd" id="8_6j6d0"]
[ext_resource type="PackedScene" uid="uid://ch1161vk4vcuj" path="res://presentation/glitchfx.tscn" id="8_nqxn2"]
[ext_resource type="PackedScene" uid="uid://b0x764v7qrymq" path="res://game-over/gameover.tscn" id="9_emrsr"]
[ext_resource type="PackedScene" uid="uid://nklyn6swbysf" path="res://pause-menu/pause_menu.tscn" id="10_jyt2d"]
[node name="Game" type="Node2D"]
script = ExtResource("1_54xge")
sprint_capacity_seconds = 2.0
[node name="StartGameDelayTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="CybersnakeGame" type="Node" parent="."]
script = ExtResource("2_8n276")
config = ExtResource("3_1honf")
[node name="Presentation" parent="." instance=ExtResource("4_76qfm")]
[node name="TickTimer" type="Timer" parent="."]
[node name="TransitionTimer" type="Timer" parent="."]
wait_time = 20.0
[node name="ConversionTimer" type="Timer" parent="."]
wait_time = 10.0
one_shot = true
[node name="TurnInput" type="Node" parent="."]
script = ExtResource("6_pok0c")
[node name="SprintInput" type="Node" parent="."]
script = ExtResource("7_2ildo")
[node name="DebugControls" type="Node" parent="."]
[node name="ScreenFxLayer" type="CanvasLayer" parent="."]
layer = 2
[node name="Glitch" parent="ScreenFxLayer" instance=ExtResource("8_nqxn2")]
z_index = 4096
z_as_relative = false
mouse_filter = 2
[node name="HUDLayer" type="CanvasLayer" parent="."]
[node name="Hud" parent="HUDLayer" instance=ExtResource("8_0l0tr")]
[node name="PauseMenuLayer" type="CanvasLayer" parent="."]
[node name="ColorRect" type="ColorRect" parent="PauseMenuLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.117647)
[node name="PauseMenu" parent="PauseMenuLayer" instance=ExtResource("10_jyt2d")]
[node name="GameoverLayer" type="CanvasLayer" parent="."]
layer = 3
[node name="ColorRect" type="ColorRect" parent="GameoverLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.117647)
[node name="Gameover" parent="GameoverLayer" instance=ExtResource("9_emrsr")]
[node name="StateHook" type="Node" parent="."]
script = ExtResource("8_6j6d0")
[connection signal="timeout" from="StartGameDelayTimer" to="." method="_on_start_game_delay_timer_timeout"]
[connection signal="timeout" from="TickTimer" to="." method="_on_timer_timeout"]
[connection signal="timeout" from="TransitionTimer" to="." method="_on_transition_timer_timeout"]
[connection signal="timeout" from="ConversionTimer" to="." method="_on_conversion_timer_timeout"]
[connection signal="down_pressed" from="TurnInput" to="." method="_on_turn_input_down_pressed"]
[connection signal="left_pressed" from="TurnInput" to="." method="_on_turn_input_left_pressed"]
[connection signal="right_pressed" from="TurnInput" to="." method="_on_turn_input_right_pressed"]
[connection signal="up_pressed" from="TurnInput" to="." method="_on_turn_input_up_pressed"]
[connection signal="start_sprint" from="SprintInput" to="." method="_on_sprint_input_start_sprint"]
[connection signal="stop_sprint" from="SprintInput" to="." method="_on_sprint_input_stop_sprint"]
[connection signal="debug_toggle_camera" from="HUDLayer/Hud" to="." method="_on_hud_debug_toggle_camera"]
[connection signal="toggle_pause" from="HUDLayer/Hud" to="." method="_on_hud_toggle_pause"]
[connection signal="back_to_game" from="PauseMenuLayer/PauseMenu" to="." method="_on_pause_menu_back_to_game"]
[connection signal="main_menu" from="PauseMenuLayer/PauseMenu" to="." method="_on_pause_menu_main_menu"]
[connection signal="retry" from="PauseMenuLayer/PauseMenu" to="." method="_on_pause_menu_retry"]
[connection signal="quit_to_leaderboard" from="GameoverLayer/Gameover" to="." method="_on_gameover_quit_to_leaderboard"]
[connection signal="quit_to_main_menu" from="GameoverLayer/Gameover" to="." method="_on_gameover_quit_to_main_menu"]
[connection signal="replay" from="GameoverLayer/Gameover" to="." method="_on_gameover_replay"]
[connection signal="updated" from="StateHook" to="." method="_on_state_hook_updated"]