Got the minigame menu up, running and documented. Also split up the game file
This commit is contained in:
35
minigame_menu.h
Normal file
35
minigame_menu.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user