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:
- 9:fa7e7b37b632
- Parent:
- 7:e72691603fd3
--- a/PlayerObject.cpp Sat Jun 08 17:51:33 2013 +0000 +++ b/PlayerObject.cpp Sun Jun 09 14:28:53 2013 +0000 @@ -14,8 +14,8 @@ #endif #include "PlayerObject.h" -// #include "SoundManager.h" -// #include "Sounds.h" +#include "SoundManager.h" +#include "Sounds.h" #include "FrameCounter.h" // Bullet velocity information. @@ -83,9 +83,7 @@ pc.printf( "Bullet started at %d, %d with velocities %d, %d.\r\n", (int)Xco, (int)Yco, (int)pair->X, (int)pair->Y ); #endif // If bullet was started then make a bullet sound. - #if 0 SoundManager::Instance.PlaySound( Sounds::FireGun, 0, 0 ); - #endif } // Reset countdown until another bullet can start. bulletCountdown = 8; @@ -173,10 +171,7 @@ // 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 SoundManager::Instance.PlaySound( Sounds::ExtraLife, 0, 0 ); -#endif Lives++; } } -