From cef940108fe15752c3ef66f43f5169403fa2f71d Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 3 Jun 2023 14:37:10 -0400 Subject: Reorganize the file structure of the files in `game/src` --- game/src/Game/GameSession/GameSession.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 game/src/Game/GameSession/GameSession.gd (limited to 'game/src/Game/GameSession/GameSession.gd') 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 -- cgit v1.2.3-56-ga3b1