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:
5:0b0651ac7832
Parent:
4:673eb9735d44
--- a/PlayerObject.h	Sat Jun 08 11:24:05 2013 +0000
+++ b/PlayerObject.h	Sat Jun 08 14:40:47 2013 +0000
@@ -77,23 +77,26 @@
     /************************/
     /* DRAW THE GAME OBJECT */
     /************************/
+    // Pass pointer to Gameduino to draw on in gd.
     // This is only called after it has been established that the
     // game object is visible.
-    virtual void Draw( void );
+    virtual void Draw( Gameduino *gd );
 
     /*********************************/
     /* KILL A SINGLE PLAYER'S BULLET */
     /*********************************/
+    // Pass pointer to Gameduino to draw on in gd.
     // Pass index of bullet in b.
-    void KillBullet( UInt8 b ) {
-      playerBullets.KillBullet( b );
+    void KillBullet( Gameduino *gd, UInt8 b ) {
+      playerBullets.KillBullet( gd, b );
     }
     
     /*****************************/
     /* KILL ALL PLAYER'S BULLETS */
     /*****************************/
-    void KillAllBullets( void ) {
-      playerBullets.KillAllBullets();
+    // Pass pointer to Gameduino to draw on in gd.
+    void KillAllBullets( Gameduino *gd ) {
+      playerBullets.KillAllBullets( gd );
     }
 
     /*********************************************************/