Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.h
- Revision:
- 9:e6832bf222b7
- Parent:
- 8:421f94b816c4
- Child:
- 10:28575a6eaa13
--- a/main.h Tue May 07 16:02:12 2019 +0000 +++ b/main.h Tue May 07 17:40:29 2019 +0000 @@ -12,7 +12,6 @@ void welcome(); void arrow_location(); void arrow_select(); - int menu_arrow[7][7] = { // Arrow pointer used in main menu {0,0,0,0,0,0,0,}, {0,0,0,0,1,0,0,}, @@ -62,19 +61,7 @@ { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0 }, }; -// Game Engine ---------------------- -class GameEngine -{ - - public: - - GameEngine(); - - ~GameEngine(); - - void gameengine_run(Gamepad &pad, N5110 &lcd); -}; // Donkey ----- class Donkey @@ -167,6 +154,21 @@ {0,1,1,1,1,1,1,0,}, }; // Banana ----- + +// Game Engine ---------------------- +Barrel barrel; + +class GameEngine +{ + + public: + + GameEngine(); + + ~GameEngine(); + + void gameengine_run(Gamepad &pad, N5110 &lcd, Barrel &barrel); +}; // Controls ------------------------- void controls_run(); // Instructions ---------------------