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.cpp
- Revision:
- 3:a6a0cd726ca0
- Parent:
- 2:bb0f631a6068
- Child:
- 4:673eb9735d44
--- a/Level0.cpp Thu Jun 06 20:11:28 2013 +0000 +++ b/Level0.cpp Fri Jun 07 20:29:59 2013 +0000 @@ -37,19 +37,17 @@ /* DRAW HIGH SCORES */ /********************/ void Level0::DrawHighScores( void ) { -#if 0 // Draw high score table. - GDExtra::WriteProgString( 16, 11, StringData::HighScoresString ); + GDExtra::WriteProgString( gd, 16, 11, StringData::HighScoresString ); PlayerName name; UInt32 score; UInt8 y = 13; for( UInt8 i = 0; i < highScores->GetCapacity(); ++i ) { highScores->Get( i, &name, &score ); - GD.putstr( 18, y, name.Name ); - GDExtra::WriteBCDNumber( 22, y, score, 8 ); + gd->putstr( 18, y, name.Name ); + GDExtra::WriteBCDNumber( gd, 22, y, score, 8 ); y += 2; } -#endif } /*************/