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

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?

UserRevisionLine numberNew contents of line
RichardE 0:5fa232ee5fdf 1 /*
RichardE 0:5fa232ee5fdf 2 * SOURCE FILE : HighScoreEntry.h
RichardE 0:5fa232ee5fdf 3 *
RichardE 0:5fa232ee5fdf 4 * Definition of class HighScoreEntry.
RichardE 0:5fa232ee5fdf 5 * Routine to allow player to enter their name using joysticks.
RichardE 0:5fa232ee5fdf 6 *
RichardE 0:5fa232ee5fdf 7 */
RichardE 0:5fa232ee5fdf 8
RichardE 0:5fa232ee5fdf 9 #ifndef HighScoreEntryDefined
RichardE 0:5fa232ee5fdf 10
RichardE 0:5fa232ee5fdf 11 #define HighScoreEntryDefined
RichardE 0:5fa232ee5fdf 12
RichardE 0:5fa232ee5fdf 13 #include "Types.h"
RichardE 0:5fa232ee5fdf 14 // #include "PanelControls.h" // for reading panel controls.
RichardE 0:5fa232ee5fdf 15 #include "PlayerName.h"
RichardE 0:5fa232ee5fdf 16
RichardE 0:5fa232ee5fdf 17 class HighScoreEntry {
RichardE 0:5fa232ee5fdf 18
RichardE 0:5fa232ee5fdf 19 public :
RichardE 0:5fa232ee5fdf 20
RichardE 0:5fa232ee5fdf 21 /***************/
RichardE 0:5fa232ee5fdf 22 /* CONSTRUCTOR */
RichardE 0:5fa232ee5fdf 23 /***************/
RichardE 0:5fa232ee5fdf 24 HighScoreEntry();
RichardE 0:5fa232ee5fdf 25
RichardE 0:5fa232ee5fdf 26 /**************/
RichardE 0:5fa232ee5fdf 27 /* DESTRUCTOR */
RichardE 0:5fa232ee5fdf 28 /**************/
RichardE 0:5fa232ee5fdf 29 virtual ~HighScoreEntry();
RichardE 0:5fa232ee5fdf 30
RichardE 0:5fa232ee5fdf 31 /*********************/
RichardE 0:5fa232ee5fdf 32 /* GET A PLAYER NAME */
RichardE 0:5fa232ee5fdf 33 /*********************/
RichardE 0:5fa232ee5fdf 34 // Pass pointer to place to store name in name.
RichardE 0:5fa232ee5fdf 35 // Pass pointer to controls to read in controls.
RichardE 0:5fa232ee5fdf 36 // void GetName( PlayerName *name, PanelControls *controls );
RichardE 0:5fa232ee5fdf 37
RichardE 0:5fa232ee5fdf 38 private :
RichardE 0:5fa232ee5fdf 39
RichardE 0:5fa232ee5fdf 40 // Position of cursor (zero for first character).
RichardE 0:5fa232ee5fdf 41 UInt8 cursorPos;
RichardE 0:5fa232ee5fdf 42
RichardE 0:5fa232ee5fdf 43 /*********************/
RichardE 0:5fa232ee5fdf 44 /* WAIT FOR CONTROLS */
RichardE 0:5fa232ee5fdf 45 /*********************/
RichardE 0:5fa232ee5fdf 46 // Pass pointer to controls to read in controls.
RichardE 0:5fa232ee5fdf 47 // Pass true in waitActivate to wait for a control to be used.
RichardE 0:5fa232ee5fdf 48 // Pass false to wait for release.
RichardE 0:5fa232ee5fdf 49 // void WaitControls( PanelControls *controls, bool waitActivate );
RichardE 0:5fa232ee5fdf 50
RichardE 0:5fa232ee5fdf 51 /*******************/
RichardE 0:5fa232ee5fdf 52 /* DRAW THE SCREEN */
RichardE 0:5fa232ee5fdf 53 /*******************/
RichardE 0:5fa232ee5fdf 54 void DrawScreen( void );
RichardE 0:5fa232ee5fdf 55
RichardE 0:5fa232ee5fdf 56 /********************************/
RichardE 0:5fa232ee5fdf 57 /* DRAW THE NAME AND THE CURSOR */
RichardE 0:5fa232ee5fdf 58 /********************************/
RichardE 0:5fa232ee5fdf 59 // Pass player name in name.
RichardE 0:5fa232ee5fdf 60 void DrawName( PlayerName *name );
RichardE 0:5fa232ee5fdf 61
RichardE 0:5fa232ee5fdf 62 /********************/
RichardE 0:5fa232ee5fdf 63 /* UPDATE ANIMATION */
RichardE 0:5fa232ee5fdf 64 /********************/
RichardE 0:5fa232ee5fdf 65 void Animate( void );
RichardE 0:5fa232ee5fdf 66
RichardE 0:5fa232ee5fdf 67 };
RichardE 0:5fa232ee5fdf 68
RichardE 0:5fa232ee5fdf 69 #endif
RichardE 0:5fa232ee5fdf 70
RichardE 0:5fa232ee5fdf 71 /* END of HighScoreEntry.h */
RichardE 0:5fa232ee5fdf 72