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

Dependencies:   ConfigFile N5110 PowerControl beep mbed

Revision:
80:55c724c1286c
Parent:
79:a92239ce3b20
--- a/main.cpp	Mon May 11 15:11:18 2015 +0000
+++ b/main.cpp	Mon May 11 22:13:11 2015 +0000
@@ -1,6 +1,7 @@
 /**
 @file main.cpp
 @brief Program implementation
+@brief "Example code of how to read a joystick" courtesy of Craig A. Evans. Created: 7th March 2015.
 */
 
 #include "PowerControl/PowerControl.h"//for sleep modes
@@ -39,9 +40,7 @@
     //Checks if key matches.
     char *key1 = "Open1";
     char *key2 = "Open2";
-    char *key3 = "Open3";
-    
-    char a[3],b[2],c[2];
+    char *key3 = "Open3";    
     
     int count=0;
 
@@ -102,8 +101,7 @@
             if(player3initials[count]==NULL){
                 break;
             }
-        }
-            
+        }   
         serial.printf("%i\n",highScore3);
     }
 }
@@ -426,7 +424,6 @@
     if(a14 < 10)
         a14 = 10;
     ///If ninja falls below min boundary, Ninja equals min boundary.    
-    
 }
 
 ///Resets configuration values for the game.
@@ -497,7 +494,6 @@
     randY5 = randY5 += fall;
     randY6 = randY6 += fall;
 
-
     ///Loops objects once they've hit the floor.
     if (randY1>=48)
         randY1=0;