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:
4:45ff7fc8a431
Child:
14:b4884a31069e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Screen1.h	Fri Jan 02 00:58:50 2015 +0000
@@ -0,0 +1,40 @@
+#ifndef __SCREEN1_H__
+#define __SCREEN1_H__
+
+class Screen1 : public Scene
+{
+public:
+    Screen1() :
+        _player(),            
+        _enemy1(3, PatrollingEnemy::LeftRight),
+        _enemy2(4)
+    {
+        addGameObject(&_enemy1);
+        addGameObject(&_enemy2);            
+        addGameObject(&_player);
+        
+        restartScreen();
+    }
+    
+    virtual void restartScreen()
+    {
+        _player.setStartPosition(Point(130, 96));
+        
+        _enemy1.setStartPosition(Point(80, 72));
+        _enemy1.setCollisionRect(0, 6, 16, 16);
+        
+        _enemy2.setStartPosition(Point(8, 8));        
+        
+        setPosition(0, 8);        
+        setMap(Maps::Screen1, 20, 15, blocks, sprites);
+        
+        Scene::restartScreen();
+    }
+        
+private:   
+    Player          _player;     
+    PatrollingEnemy _enemy1;
+    BouncingEnemy   _enemy2;
+};
+
+#endif //__SCREEN1_H__
\ No newline at end of file