aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSession.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-06-04 02:17:28 +0200
committer GitHub <noreply@github.com>2023-06-04 02:17:28 +0200
commit3236f51d700674aee6ee6572109ffb3d5fa5fed2 (patch)
treeb898150a8a45e7c0d814459e7f12f39429acefeb /game/src/Game/GameSession/GameSession.gd
parent73e29d02e48739aba5ca5db1b9575c67e795400f (diff)
parentb98166b28c47cccff731d30959b8250fb27ff408 (diff)
Merge pull request #130 from Spartan322/organize/godot-project
Diffstat (limited to 'game/src/Game/GameSession/GameSession.gd')
-rw-r--r--game/src/Game/GameSession/GameSession.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/GameSession.gd b/game/src/Game/GameSession/GameSession.gd
new file mode 100644
index 0000000..5bb1c2f
--- /dev/null
+++ b/game/src/Game/GameSession/GameSession.gd
@@ -0,0 +1,16 @@
+extends Control
+
+@export var _game_session_menu : Control
+
+func _ready():
+ Events.Options.load_settings_from_file()
+ if GameSingleton.setup_game() != OK:
+ push_error("Failed to setup game")
+
+func _process(delta : float):
+ GameSingleton.try_tick()
+
+# REQUIREMENTS:
+# * SS-42
+func _on_game_session_menu_button_pressed() -> void:
+ _game_session_menu.visible = !_game_session_menu.visible