36 lines
890 B
C
36 lines
890 B
C
/*
|
|
* Created by snapshot112 on 10/15/25.
|
|
*
|
|
* A minigame menu for games configured to run on the grid game engine.
|
|
*
|
|
* Please make sure to include and initialize the game engine before calling menu();
|
|
*/
|
|
|
|
#ifndef MINIGAME_MENU_MINIGAME_MENU_H
|
|
#define MINIGAME_MENU_MINIGAME_MENU_H
|
|
|
|
typedef enum {
|
|
GAME_MAZE_RUNNER = 0,
|
|
GAME_SNAKE = 1,
|
|
GAME_MINESWEEPER = 2,
|
|
GAME_QUIT = 3,
|
|
} game;
|
|
|
|
/*
|
|
* A minigame menu for games configured to run on the grid game engine.
|
|
*
|
|
* Please make sure to include and initialize the game engine before calling menu();
|
|
*
|
|
* Side Effects:
|
|
* Clears the console and uses it to display a minigame menu.
|
|
*
|
|
* Controls:
|
|
* 'w'/'arr_up: Next menu item.
|
|
* 's'/'arr_down': Previous menu item.
|
|
* 'f': Select current menu item.
|
|
* 'BACKSPACE': Exit the menu.
|
|
*/
|
|
void minigame_menu(void);
|
|
|
|
#endif //MINIGAME_MENU_MINIGAME_MENU_H
|