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:
Thu Apr 30 15:55:43 2015 +0000
Parent:
50:b8a3b84ed221
Child:
52:bb2acf0e248a
Commit message:
this works 30/4/15 16:55

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
tower.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 30 14:29:38 2015 +0000
+++ b/main.cpp	Thu Apr 30 15:55:43 2015 +0000
@@ -35,6 +35,7 @@
     while(1) {
         drawMainMenu();//draws main menu
         mainMenu(mainOption);//presents main menu options
+        actionButtons();
 
         // if 'Play Game' selected
         if ((mainOption == 0)&&(buttonFlagA)) {
--- a/tower.h	Thu Apr 30 14:29:38 2015 +0000
+++ b/tower.h	Thu Apr 30 15:55:43 2015 +0000
@@ -108,7 +108,7 @@
 void refreshCursor3();
 void ninjaBoundaries();
 void hazardFall();
-void ore();
+void newScore();
 
 void mainMenu();
 void exitMenu();
@@ -186,6 +186,7 @@
     RIGHT,
     CENTRE,
     UNKNOWN
+    
 };
 
 //struct for Joystick
@@ -1106,7 +1107,6 @@
                 resetGame();
                 break;
             }
-            wait(0.5);
             lcd.refresh();
             startrek();//clears unset pixels, keeps set pixels