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:
1:dfd5eaaf96a3
Parent:
0:5fa232ee5fdf
Child:
2:bb0f631a6068
--- a/Level.h	Tue Jun 04 20:16:33 2013 +0000
+++ b/Level.h	Wed Jun 05 22:05:41 2013 +0000
@@ -12,19 +12,20 @@
 
   #include "Types.h"
   #include "Gameduino.h"               // Gameduino library
+  #include "GDExtra.h"                 // a few more Gameduino related functions
+  #include "GDConst.h"                 // a few more Gameduino constants
+  #include "CharCodes.h"               // character codes
+  #include "CharBlocks.h"
+  #include "StringData.h"
   #include "HighScoreTable.h"
 #if 0
-  #include "GDConst.h"                 // a few more Gameduino constants
-  #include "GDExtra.h"                 // a few more Gameduino related functions
   #include "ArenaConst.h"
   #include "SpriteImageId.h"
-  #include "CharCodes.h"               // character codes
   #include "GameObject.h"
   #include "GruntObject.h"
   #include "BlueMeanyObject.h"
   #include "CrusherObject.h"
-    #include "BrainObject.h"
-  #include "StringData.h"
+  #include "BrainObject.h"
   #include "CharFrame.h"
   #include "SoundManager.h"
   #include "Sounds.h"
@@ -54,7 +55,15 @@
     void SetHighScores( HighScoreTable *hst ) {
         highScores = hst;
     }
-        
+
+    /*************************************************/
+    /* SET GAMEDUINO ON WHICH GRAPHICS WILL BE DRAWN */
+    /*************************************************/
+    // Pass pointer to a Gameduino.
+    void SetGameduino( Gameduino *g ) {
+        gd = g;
+    }
+                
     /***************************************/
     /* SET PLAYER WHO IS PLAYING THE LEVEL */
     /***************************************/
@@ -79,9 +88,12 @@
     
   protected :
   
-        // Pointer to high score table.
-        HighScoreTable *highScores;
+    // Pointer to high score table.
+    HighScoreTable *highScores;
         
+    // Gameduino on which level is played.
+    Gameduino *gd;
+    
     // Player playing the level.
     // PlayerObject *player;