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:
7:2fd875c1d9b1
Parent:
0:2ee0812e2615
--- a/LCD_ST7735/Bitmap4bpp.cpp	Fri Jan 02 02:04:11 2015 +0000
+++ b/LCD_ST7735/Bitmap4bpp.cpp	Sun Jan 04 03:12:58 2015 +0000
@@ -4,10 +4,19 @@
 Bitmap4bpp::Bitmap4bpp(uint16_t width, uint16_t height) :
     _width(width), 
     _height(height),
-    _stride((width >> 1) + (width & 0x01))
+    _stride((width >> 1) + (width & 0x01)),
+    _pBitmapData(new uint8_t[_stride * height])    
 {
-    //_pBitmapData = new uint8_t[_stride * height];
-    _pBitmapData = (uint8_t*)malloc(_stride * height);
+    
+}
+
+Bitmap4bpp::~Bitmap4bpp()
+{
+    if (_pBitmapData != NULL)
+    {
+        delete []_pBitmapData;
+        _pBitmapData = NULL;
+    }
 }
 
 void Bitmap4bpp::clear()