feat: game loop

This commit is contained in:
istamarahsan 2025-01-25 15:07:03 +07:00
parent 7d05df6e39
commit d47c2e513b
12 changed files with 97 additions and 37 deletions

View file

@ -32,6 +32,7 @@ var transition_history: Array[PhaseTransition] = []
func _on_match_manager_state_transitioned(transition: PhaseTransition):
start_game_btn.visible = match_manager.phase == Match.Phase.PREGAME
transition_history.append(transition)
print("Phase: ", Match.phase_to_str(transition.from), " -> ", Match.phase_to_str(transition.to))
func _on_start_game_button_button_up() -> void:
match_manager.resolve({})