A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.

Dependencies:   ConfigFile N5110 PowerControl beep mbed

Files at this revision

API Documentation at this revision

Comitter:
el13drt
Date:
Mon Apr 27 16:48:37 2015 +0000
Parent:
47:88e3e6c0452d
Child:
49:fe0999aab485
Commit message:
debug highscores

Changed in this revision

tower.h Show annotated file Show diff for this revision Revisions of this file
--- a/tower.h	Thu Apr 23 19:23:31 2015 +0000
+++ b/tower.h	Mon Apr 27 16:48:37 2015 +0000
@@ -260,7 +260,7 @@
     for(int x=0; x<WIDTH; x+=4)
         lcd.drawLine(83,1,83,48,2);
 
-    lcd.refresh();
+    //lcd.refresh();
 }
 
 //intro screen
@@ -1003,7 +1003,7 @@
             highScore3 = highScore2;
             n = score;
             highScore2 = n;
-            sprintf (player3initials, "1.%c%c%c.....%i",player2initials[2],player3initials[3],player3initials[4],highScore3);
+            sprintf (player3initials, "3.%c%c%c.....%i",player2initials[2],player3initials[3],player3initials[4],highScore3);
             sprintf (player2initials, "2.%c%c%c.....%i",x,y,z,highScore2);
         }
         //if player beats High Score 1, 2 and 3, replace highScore1 with new score
@@ -1012,8 +1012,8 @@
             highScore2 = highScore1;
             n = score;
             highScore1 = n;
-            sprintf (player3initials, "1.%c%c%c.....%i",player2initials[2],player3initials[3],player3initials[4],highScore3);
-            sprintf (player2initials, "1.%c%c%c.....%i",player1initials[2],player1initials[3],player1initials[4],highScore2);
+            sprintf (player3initials, "3.%c%c%c.....%i",player2initials[2],player3initials[3],player3initials[4],highScore3);
+            sprintf (player2initials, "2.%c%c%c.....%i",player1initials[2],player1initials[3],player1initials[4],highScore2);
             sprintf (player1initials, "1.%c%c%c.....%i",x,y,z,highScore1);
         }
         state1 = 0;