Platform game written for the GHI/OutrageousCircuits RETRO game device. Navigate the caves collecting all the pickups and avoiding the creatures and haunted mine carts that patrol the caves. Oh and remember to watch out for the poisonous plants... This game demonstrates the ability to have multiple animated sprites where the sprites can overlap the background environment. See how the player moves past the fence and climbs the wall in the 3rd screen.

Dependencies:   mbed

Revision:
16:f9227904afc4
Parent:
14:b4884a31069e
--- a/main.cpp	Mon Feb 16 02:45:57 2015 +0000
+++ b/main.cpp	Mon Feb 16 03:46:57 2015 +0000
@@ -10,6 +10,7 @@
 #include "Screen1.h"
 #include "Screen2.h"
 #include "Screen3.h"
+#include "Screen4.h"
 
 class MyGame : public Game
 { 
@@ -27,13 +28,13 @@
         virtual void completeScreen()
         {
             _intro = false;
-            if (_screen == 2)
+            if (_screen == 3)
             {
                 increaseSpeed(10);
                 addLives(1);
             }
             
-            _screen = (_screen + 1) % 3;
+            _screen = (_screen + 1) % 4;
             
             Scene *pCur = getScene();
             if (pCur != NULL) delete pCur;
@@ -43,6 +44,7 @@
                 case 0 : setScene(new Screen1); break;
                 case 1 : setScene(new Screen2); break;
                 case 2 : setScene(new Screen3); break;
+                case 3 : setScene(new Screen4); break;
             }
         };