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:
4:673eb9735d44
Parent:
0:5fa232ee5fdf
Child:
14:46a353b2a8e8
--- a/HighScoreEntry.h	Fri Jun 07 20:29:59 2013 +0000
+++ b/HighScoreEntry.h	Sat Jun 08 11:24:05 2013 +0000
@@ -11,8 +11,9 @@
   #define HighScoreEntryDefined
 
   #include "Types.h"
-  // #include "PanelControls.h"   // for reading panel controls.
+  #include "PanelControls.h"   // for reading panel controls.
   #include "PlayerName.h"
+  #include "Gameduino.h"
   
   class HighScoreEntry {
 
@@ -33,7 +34,8 @@
     /*********************/
     // Pass pointer to place to store name in name.
     // Pass pointer to controls to read in controls.
-    // void GetName( PlayerName *name, PanelControls *controls );
+    // Pass pointer to Gameduino to display on in gd.
+    void GetName( PlayerName *name, PanelControls *controls, Gameduino *gd );
 
 private :
 
@@ -43,26 +45,30 @@
     /*********************/
     /* WAIT FOR CONTROLS */
     /*********************/
+    // Pass pointer to Gameduino to display on in gd.
     // Pass pointer to controls to read in controls.
     // Pass true in waitActivate to wait for a control to be used.
     // Pass false to wait for release.
-    // void WaitControls( PanelControls *controls, bool waitActivate );
+    void WaitControls( Gameduino *gd, PanelControls *controls, bool waitActivate );
 
     /*******************/
     /* DRAW THE SCREEN */
     /*******************/
-    void DrawScreen( void );    
+    // Pass pointer to Gameduino to display on in gd.
+    void DrawScreen( Gameduino *gd );    
 
     /********************************/
     /* DRAW THE NAME AND THE CURSOR */
     /********************************/
+    // Pass pointer to Gameduino to display on in gd.
     // Pass player name in name.
-    void DrawName( PlayerName *name );
+    void DrawName( Gameduino *gd, PlayerName *name );
     
     /********************/
     /* UPDATE ANIMATION */
     /********************/
-    void Animate( void );
+    // Pass pointer to Gameduino to display on in gd.
+    void Animate( Gameduino *gd );
 
   };