Refactor/game over screen (#468)
* Move game over (win/lose) state functions to their own file * remove unused enum * clang format * Implement suggestions from @ricfehr3 * Fixing lack of highlighted button after skipping ablind * factorize as much game over state code as possible --------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
This commit is contained in:
@@ -134,6 +134,17 @@ typedef struct
|
||||
|
||||
// Game functions
|
||||
void game_init();
|
||||
|
||||
/**
|
||||
* @brief Called when exiting the Game Over screen (both win or lose) to reset game variables
|
||||
* and start a fresh new run.
|
||||
*
|
||||
* WARNING: This function is currently only meant to be called from the "GAME_OVER" state
|
||||
* and shouldn't be called from other states, otherwise some data such as shop jokers
|
||||
* may not be properly reset.
|
||||
*/
|
||||
void game_reset();
|
||||
|
||||
void game_update();
|
||||
void game_change_state(enum GameState new_game_state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user