summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp53
1 files changed, 30 insertions, 23 deletions
diff --git a/main.cpp b/main.cpp
index c302408..a6f0cc3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,34 +1,41 @@
/* **************************************
- * Includes *
+ * Includes *
* **************************************/
-#include "Global_Inc.h"
-#include "Gameplay.h"
#include "Menu.h"
+#include "System.h"
/* **************************************
- * Global variables *
+ * Defines *
* **************************************/
-Gamebuino gb;
-
-int main(){
-
- init();
-
- SystemInit();
-
- gb.begin();
-
- // Main loop
- while (1)
- {
- gb.titleScreen(F("Pocket Empires"));
-
- MainMenu();
- }
-
+/* **************************************
+ * Global variables *
+ * **************************************/
- return 0;
+/* **************************************
+ * Functions definition *
+ * **************************************/
+/*****************************************************************//**
+ *
+ * \brief Initializes the device and game parameters.
+ *
+ * \return Error code (always 0), but is never returned.
+ *
+ *********************************************************************/
+int main()
+{
+ /* Initialize system and game parameters. */
+ SystemInit();
+
+ /* Main loop. */
+ for (;;)
+ {
+ /* Execute gameplay. */
+ MainMenu();
+ }
+
+ /* This must never be reached. */
+ return 0;
}