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

Revision:
14:46a353b2a8e8
Parent:
10:bfa1c307c99d
Child:
17:194789db2215
--- a/GameRobotRic.cpp	Tue Jun 11 19:29:04 2013 +0000
+++ b/GameRobotRic.cpp	Tue Jun 11 21:04:48 2013 +0000
@@ -33,7 +33,7 @@
 void GameRobotRic::CheckForHighScore( Gameduino *gd, HighScoreTable *highScores, UInt32 score ) {
     UInt8 tablePos;
     // Enter name into high score table if score is high enough.
-    if( ( tablePos = highScores->GetPositionInTable( player.Score ) ) < highScores->GetCapacity() ) {
+    if( ( tablePos = highScores->GetPositionInTable( score ) ) < highScores->GetCapacity() ) {
         // Player has made it onto the high score table.
         // Get player to input name.
         HighScoreEntry nameGetter;
@@ -108,6 +108,11 @@
     // Restrict players movement.
     player.MovementRestricted = true;
     player.Bounds = &ArenaRectangle;
+    
+    // REMOVE THIS!
+    CheckForHighScore( &gd, &highScores, 0x10000 );
+    
+    
     // Repeat forever.
     while( true ) {
         // Get level specified by level number.