game_loop nearly done

This commit is contained in:
2025-06-12 22:23:52 +02:00
parent 0730c6d40a
commit 402d44e2bb
30 changed files with 136 additions and 173 deletions
+7 -1
View File
@@ -2,6 +2,8 @@ extends CanvasLayer
signal new_game_pressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
self.get_node("TitleScreen/MenuContainer/NewGame").pressed.connect(_on_new_game_pressed)
@@ -10,14 +12,18 @@ func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_new_game_pressed() -> void:
new_game_pressed.emit()
print("Starting New Game...")
func _on_quit_game_pressed():
get_tree().quit()