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

Dependencies:   ConfigFile N5110 PowerControl beep mbed

Revision:
60:681bc941b94d
Parent:
59:be7a31cb8cd1
Child:
62:827cda7a2663
--- a/tower.h	Sat May 02 02:39:30 2015 +0000
+++ b/tower.h	Sun May 03 22:26:11 2015 +0000
@@ -46,6 +46,13 @@
 int buttonFlagA = 0;
 int buttonFlagB = 0;
 
+//button values for debounce problem
+int oldButtonA = 0;
+int newButtonA;
+
+int oldButtonB = 0;
+int newButtonB;
+
 //flag for joystick reading
 int printFlag = 0;
 
@@ -72,11 +79,19 @@
 int a1 = 22;
 int a2 = 24;
 int a3 = 23;
-int a4 = 25;
-int a5 = 20;
-int a6 = 26;
-int a7 = 19;
-int a8 = 21;
+int a4 = 22;
+int a5 = 22;
+int a6 = 24;
+int a7 = 25;
+int a8 = 20;
+int a9 = 20;
+int a10 = 26;
+int a11 = 26;
+int a12 = 26;
+int a13 = 24;
+int a14 = 19;
+int a15 = 20;
+int a16 = 21;
 
 //global variable for hazard X co-ordinates
 int randX1;
@@ -112,6 +127,8 @@
 void refreshCursor2();
 void refreshCursor3();
 void ninjaBoundaries();
+void ninjaLeft();
+void ninjaRight();
 void hazardFall();
 void newScore();