Add Table handles Sides

This commit is contained in:
JonShard
2026-07-31 14:03:53 +02:00
parent 3d616bf4a5
commit 48c9845624
15 changed files with 528 additions and 79 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ enum GameState {
}
static var game_state: GameState = GameState.RUNNING
static func _restart():
print("restart Game")
game_state = GameState.RUNNING
@@ -27,6 +27,7 @@ static func get_random_meal() -> String:
static func get_random_side() -> String:
print("GameManager: get_random_side() ")
if sides_in_play.size() == 0:
push_error("GameManager: get_random_side() called but sides_in_play is empty")
return ""
@@ -35,7 +36,6 @@ static func get_random_side() -> String:
return sides_in_play[rand_index]
static func game_over():
print("Game Over")
game_state = GameState.GAME_OVER