diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 53 |
1 files changed, 30 insertions, 23 deletions
@@ -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; } |
