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: PlayerObject.cpp
- Revision:
- 7:e72691603fd3
- Parent:
- 6:8bbdb70bc11c
- Child:
- 9:fa7e7b37b632
--- a/PlayerObject.cpp Sat Jun 08 15:50:38 2013 +0000 +++ b/PlayerObject.cpp Sat Jun 08 16:44:54 2013 +0000 @@ -172,11 +172,11 @@ // Check if the fourth digit from the right has changed. // If it has then you must have passed through a thousand point // boundary so award an extra life but don't let it overflow. + if( ( digit != (UInt8)( ( Score & 0xF000 ) >> 12 ) ) && ( Lives < 255 ) ) { #if 0 - if( ( digit != (UInt8)( ( Score & 0xF000 ) >> 12 ) ) && ( Lives < 255 ) ) { SoundManager::Instance.PlaySound( Sounds::ExtraLife, 0, 0 ); +#endif Lives++; } -#endif }