summaryrefslogtreecommitdiff
path: root/Menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Menu.cpp')
-rw-r--r--Menu.cpp40
1 files changed, 25 insertions, 15 deletions
diff --git a/Menu.cpp b/Menu.cpp
index a8c0115..9b19069 100644
--- a/Menu.cpp
+++ b/Menu.cpp
@@ -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";