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:
6:8bbdb70bc11c
Parent:
5:0b0651ac7832
Child:
8:82d88f9381f3
--- a/GameObject.h	Sat Jun 08 14:40:47 2013 +0000
+++ b/GameObject.h	Sat Jun 08 15:50:38 2013 +0000
@@ -199,9 +199,10 @@
     /****************************/
     /* DRAW AN ARRAY OF OBJECTS */
     /****************************/
+    // Pass pointer to Gameduino to draw on in gd.
     // Pass pointer to array of pointers to GameObjects in objects.
     // Pass number of pointers in the array in objectCount.
-    static void DrawAll( GameObject **objects, UInt8 objectCount );
+    static void DrawAll( Gameduino *gd, GameObject **objects, UInt8 objectCount );
 
     /************************************************/
     /* FIND AN UNUSED OBJECT IN AN ARRAY OF OBJECTS */
@@ -216,12 +217,13 @@
     /****************************************************/
     /* FIND COLLISIONS WITH ALL THE OBJECTS IN AN ARRAY */
     /****************************************************/
+    // Pass pointer to Gameduino in gd parameter.
     // Pass pointer to array of pointers to GameObjects in objects.
     // Pass number of pointers in the array in objectCount.
     // Pass pointer to a function that takes two UInt8 parameters in func.
     // The first parameter is the index of the object in the objects array that hit something.
     // The second parameter is the sprite number of the sprite which it hit.
-    static void FindCollisions( GameObject **objects, UInt8 objectCount, void (*func)( UInt8, UInt8 ) );
+    void FindCollisions( Gameduino *gd, GameObject **objects, UInt8 objectCount, void (*func)( UInt8, UInt8 ) );
     
     /*************************************************************************/
     /* FIND AN OBJECT WITH A PARTICULAR SPRITE NUMBER IN AN ARRAY OF OBJECTS */