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:
- 6:8bbdb70bc11c
- Parent:
- 5:0b0651ac7832
- Child:
- 7:e72691603fd3
--- a/PlayerObject.cpp Sat Jun 08 14:40:47 2013 +0000 +++ b/PlayerObject.cpp Sat Jun 08 15:50:38 2013 +0000 @@ -72,10 +72,16 @@ UInt16 joy2Map = ( map >> PanelControls::Joy2 ) & 0x0F; // Only start a bullet if at least one joystick contact is closed. if( joy2Map != 0 ) { + #ifdef CHATTY + pc.puts( "Trying to start a new bullet.\r\n" ); + #endif // Fetch velocities associated with this combination of joystick inputs. pair = bulletVelocities.GetVelocities( joy2Map ); // Try and start a new bullet. if( playerBullets.StartBullet( Xco, Yco, pair->X, pair->Y ) ) { + #ifdef CHATTY + 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 );