Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
GameRobotRic.h@0:5fa232ee5fdf, 2013-06-04 (annotated)
- Committer:
- RichardE
- Date:
- Tue Jun 04 20:16:33 2013 +0000
- Revision:
- 0:5fa232ee5fdf
- Child:
- 4:673eb9735d44
Started conversion from Maple version of game. So far Gameduino seems to have been initialised OK and just displays a sign on message. Lots of commented out code.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RichardE | 0:5fa232ee5fdf | 1 | /* |
RichardE | 0:5fa232ee5fdf | 2 | * SOURCE FILE : GameRobotRic.h |
RichardE | 0:5fa232ee5fdf | 3 | * |
RichardE | 0:5fa232ee5fdf | 4 | * The RobotRic game class. |
RichardE | 0:5fa232ee5fdf | 5 | * |
RichardE | 0:5fa232ee5fdf | 6 | */ |
RichardE | 0:5fa232ee5fdf | 7 | |
RichardE | 0:5fa232ee5fdf | 8 | #ifndef GameRobotRicIncluded |
RichardE | 0:5fa232ee5fdf | 9 | |
RichardE | 0:5fa232ee5fdf | 10 | #define GameRobotRicIncluded |
RichardE | 0:5fa232ee5fdf | 11 | |
RichardE | 0:5fa232ee5fdf | 12 | #include "Gameduino.h" // Gameduino stuff |
RichardE | 0:5fa232ee5fdf | 13 | #include "Game.h" // base class for all games |
RichardE | 0:5fa232ee5fdf | 14 | // #include "PlayerObject.h" |
RichardE | 0:5fa232ee5fdf | 15 | #include "HighScoreTable.h" // for high score table stored in external EEPROM |
RichardE | 0:5fa232ee5fdf | 16 | |
RichardE | 0:5fa232ee5fdf | 17 | class GameRobotRic : public Game { |
RichardE | 0:5fa232ee5fdf | 18 | |
RichardE | 0:5fa232ee5fdf | 19 | public : |
RichardE | 0:5fa232ee5fdf | 20 | |
RichardE | 0:5fa232ee5fdf | 21 | /*****************/ |
RichardE | 0:5fa232ee5fdf | 22 | /* PLAY THE GAME */ |
RichardE | 0:5fa232ee5fdf | 23 | /*****************/ |
RichardE | 0:5fa232ee5fdf | 24 | // This NEVER exits. |
RichardE | 0:5fa232ee5fdf | 25 | void Play( void ); |
RichardE | 0:5fa232ee5fdf | 26 | |
RichardE | 0:5fa232ee5fdf | 27 | private : |
RichardE | 0:5fa232ee5fdf | 28 | |
RichardE | 0:5fa232ee5fdf | 29 | // The one and only player. |
RichardE | 0:5fa232ee5fdf | 30 | // PlayerObject player; |
RichardE | 0:5fa232ee5fdf | 31 | |
RichardE | 0:5fa232ee5fdf | 32 | // Controls used by player. |
RichardE | 0:5fa232ee5fdf | 33 | // PanelControls controls; |
RichardE | 0:5fa232ee5fdf | 34 | |
RichardE | 0:5fa232ee5fdf | 35 | /**************************/ |
RichardE | 0:5fa232ee5fdf | 36 | /* CHECK FOR A HIGH SCORE */ |
RichardE | 0:5fa232ee5fdf | 37 | /**************************/ |
RichardE | 0:5fa232ee5fdf | 38 | // Pass pointer to high score table in highScores. |
RichardE | 0:5fa232ee5fdf | 39 | // Pass score that was achieved in score. |
RichardE | 0:5fa232ee5fdf | 40 | void CheckForHighScore( HighScoreTable *highScores, UInt32 score ); |
RichardE | 0:5fa232ee5fdf | 41 | |
RichardE | 0:5fa232ee5fdf | 42 | }; |
RichardE | 0:5fa232ee5fdf | 43 | |
RichardE | 0:5fa232ee5fdf | 44 | #endif |
RichardE | 0:5fa232ee5fdf | 45 | |
RichardE | 0:5fa232ee5fdf | 46 | /* END of GameRobotRic.h */ |
RichardE | 0:5fa232ee5fdf | 47 |