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: LevelNormal.cpp
- Revision:
- 6:8bbdb70bc11c
- Parent:
- 5:0b0651ac7832
- Child:
- 7:e72691603fd3
--- a/LevelNormal.cpp Sat Jun 08 14:40:47 2013 +0000 +++ b/LevelNormal.cpp Sat Jun 08 15:50:38 2013 +0000 @@ -328,7 +328,7 @@ // Draw the player. player->Draw( gd ); // Draw the player's bullets. - GameObject::DrawAll( player->GetBullets(), BulletManager::MaxBullets ); + GameObject::DrawAll( gd, player->GetBullets(), BulletManager::MaxBullets ); // Increment the frame counter. FrameCounter++; // After first redraw play level start sound and wait for it to end. @@ -373,9 +373,9 @@ // enemies on it. if( ! allEnemiesAreDead ) { allEnemiesAreDead = EnemyObject::AreAllIndestructable( - (const EnemyObject**)DataForLevel->Enemies, - LevelData::MaxEnemies - ); + (const EnemyObject**)DataForLevel->Enemies, + LevelData::MaxEnemies + ); } // Move all the humans. GameObject::MoveAll( DataForLevel->Humans, LevelData::MaxHumans );