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:
14:b4884a31069e
Parent:
9:34008d8b1cdf
--- a/RetroGameEngine/Scene.cpp	Mon Feb 16 01:51:03 2015 +0000
+++ b/RetroGameEngine/Scene.cpp	Mon Feb 16 02:35:14 2015 +0000
@@ -3,7 +3,6 @@
 Bitmap4bpp Scene::BitmapBuffer(24, 24);
     
 Scene::Scene() : 
-    _gameObjects(new GameObject*[MAX_GAMEOBJECTS]),
     _map(NULL),
     _x(0),
     _y(0),
@@ -20,11 +19,7 @@
 
 Scene::~Scene()
 {
-    if (_gameObjects != NULL)
-    {
-        delete[] _gameObjects;
-        _gameObjects = NULL;
-    }
+    
 }
 
 void Scene::restartScreen()
@@ -242,9 +237,7 @@
 
 bool Scene::isHeld(uint8_t cellX, uint8_t cellY)
 {    
-    Point pt;
-    
-    pt = Point(cellX, cellY);
+    Point pt(cellX, cellY); 
     for (int i = 0; i < _objectsHeld; ++i)
     {
         if (pt == _pickups[i]) return true;