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: HighScoreEntry.h
- Revision:
- 17:194789db2215
- Parent:
- 16:d0b142ba4362
--- a/HighScoreEntry.h Sat Jun 15 19:27:36 2013 +0000 +++ b/HighScoreEntry.h Sun Jun 16 08:54:57 2013 +0000 @@ -48,12 +48,33 @@ // Grid around which cursor moves. FieldGrid grid; - + + // Some text. + static const char textDelete[]; + static const char textEnter[]; + /*******************/ /* INITIALISE GRID */ /*******************/ void InitialiseGrid( void ); + /***************************************/ + /* ADD A CELL CONTAINING TEXT TO A ROW */ + /***************************************/ + // Pass character coordinates in x and y. These will be updated. + // Pass row to which cells should be added in row. + // Pass text which is to be contained in cell in text. + void AddTextCell( UInt8 &x, UInt8 &y, FieldRow *row, const char *text ); + + /************************************************************************/ + /* PERFORM A SPECIAL FUNCTION TRIGGERED FROM A CELL ON LAST ROW OF GRID */ + /************************************************************************/ + // Pass pointer to Gameduino to draw on in gd. + // Pass function number in funcNum (this is the cursor column number). + // Pass player name in name. + // Pass reference to done flag in done. + void SpecialFunction( Gameduino *gd, UInt8 funcNum, PlayerName *name, bool &done ); + /*********************/ /* WAIT FOR CONTROLS */ /*********************/