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
Diff: Level0.h
- Revision:
- 0:5fa232ee5fdf
- Child:
- 1:dfd5eaaf96a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Level0.h Tue Jun 04 20:16:33 2013 +0000 @@ -0,0 +1,55 @@ +/* + * SOURCE FILE : Level0.h + * + * Definition of class Level0. + * + */ + +#ifndef Level0Defined + + #define Level0Defined + + #include "Level.h" + + class Level0 : public Level { + + public : + + /***************/ + /* CONSTRUCTOR */ + /***************/ + Level0(); + + /**************/ + /* DESTRUCTOR */ + /**************/ + virtual ~Level0(); + + /**************/ + /* PLAY LEVEL */ + /**************/ + // Returns code indicating how level ended. + virtual LevelExitCode Play( void ); + + protected : + + /********************/ + /* DRAW HIGH SCORES */ + /********************/ + void DrawHighScores( void ); + + /*************/ + /* PLAY LOOP */ + /*************/ + // Returns code indicating how level ended. + // This method should be called from the Play method after the + // level data has been initialised and the return value returned + // by the Play method. + LevelExitCode PlayLoop( void ); + + }; + +#endif + +/* END of Level0.h */ +