diff options
Diffstat (limited to 'Menu.cpp')
| -rw-r--r-- | Menu.cpp | 40 |
1 files changed, 25 insertions, 15 deletions
@@ -1,6 +1,6 @@ -/* ************************************** - * Includes * - * **************************************/ +/* ******************************************************************* + * Includes + * ******************************************************************/ #include "Menu.h" #include "HumanPlayer.h" @@ -9,23 +9,31 @@ #include <Gamebuino.h> #include <Arduino.h> -/* ************************************** - * Defines * - * **************************************/ +/* ******************************************************************* + * Defines + * ******************************************************************/ #define GAME_NAME "Pocket Empires" -/* ************************************** - * Structs and enums * - * **************************************/ +/* ******************************************************************* + * Types definition + * ******************************************************************/ -/* ************************************** - * Local variables * - * **************************************/ +/* ******************************************************************* + * Global variables definition + * ******************************************************************/ -/* ************************************** - * Functions definition * - * **************************************/ +/* ******************************************************************* + * Local variables definition + * ******************************************************************/ + +/* ******************************************************************* + * Local prototypes declaration + * ******************************************************************/ + +/* ******************************************************************* + * Functions definition + * ******************************************************************/ /*****************************************************************//** * @@ -44,6 +52,8 @@ void MainMenu(void) MAX_CHOICES }; + /* Strings must be individually allocated into + * PROGMEM so they can be read correctly by gb.menu(). */ static const char strMainMenuOptions_0[] PROGMEM = "Single player game"; static const char strMainMenuOptions_1[] PROGMEM = "Multiplayer game"; static const char strMainMenuOptions_2[] PROGMEM = "Options"; |
