MULTITHREADED FOR EPICNESSSSSS

This commit is contained in:
2025-10-17 14:29:22 +02:00
parent 0e133aff32
commit f0e9d5c751
7 changed files with 148 additions and 95 deletions

View File

@@ -26,7 +26,7 @@ static int OFFSET_X = 5;
* menu: A pointer to the menu grid.
* game: The game you want to launch.
*/
static void launch_game(rooster *menu, const game game) {
static void launch_game(const game game) {
switch (game) {
case GAME_MAZE_RUNNER:
maze_runner();
@@ -131,12 +131,13 @@ static int navigate_menu(rooster *menu) {
menu_move(1);
break;
case KEY_ENTER:
case '\n':
case 'f':
case 'F':
if (SELECTED_GAME == GAME_QUIT) {
return 1;
}
launch_game(menu, SELECTED_GAME);
launch_game(SELECTED_GAME);
break;
case KEY_BACKSPACE:
return 1;