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:
10:bfa1c307c99d
Parent:
9:fa7e7b37b632
Child:
12:81926431fea7
--- a/LevelNormal.h	Sun Jun 09 14:28:53 2013 +0000
+++ b/LevelNormal.h	Sun Jun 09 19:34:56 2013 +0000
@@ -15,6 +15,7 @@
 
   #include "Level.h"
   #include "LevelData.h"
+  #include "LevelDescriptor.h"
   #include "ExplosionManager.h"
   
   class LevelNormal : public Level {
@@ -24,19 +25,22 @@
     /***************/
     /* CONSTRUCTOR */
     /***************/
-    LevelNormal();
+    // Pass pointer to level descriptor data in data parameter.
+    LevelNormal( const UInt8 *data );
 
     /**************/
     /* DESTRUCTOR */
     /**************/
     virtual ~LevelNormal();
 
+    /**************/
+    /* PLAY LEVEL */
+    /**************/
+    // Returns code indicating how level ended.
+    virtual LevelExitCode Play( void );
+
   protected :
 
-    // Data defining the level.
-    // You should write to this before calling PlayLoop.
-    LevelData *DataForLevel;
-    
     /*************/
     /* PLAY LOOP */
     /*************/
@@ -48,6 +52,12 @@
     
   private :
 
+    // Data defining the level.
+    LevelData dataForLevel;
+    
+    // Descriptor array of bytes.
+    const UInt8 *descriptorData;
+    
     // Current instance being processed.
     static LevelNormal *currentInstance;