Ray casting engine implemented on the mBuino platform using the ST7735 LCD controller.

Dependencies:   LCD_ST7735 mbed

Ray casting engine written to test performance of the LCD_ST7735 library I wrote as a learning exercise on the mbed platform.

Revision:
1:fdbc2be25831
Parent:
0:303768292f44
--- a/Raycaster.cpp	Sun Sep 21 22:04:22 2014 +0000
+++ b/Raycaster.cpp	Mon Sep 22 04:23:35 2014 +0000
@@ -47,6 +47,15 @@
     _pSlivers = new Sliver[_width >> 1];
 }
 
+Raycaster::~Raycaster()
+{
+    if (_pSlivers != NULL)
+    {
+        delete[] _pSlivers;
+        _pSlivers = NULL;
+    }
+}
+
 void Raycaster::setCellPosition(int x, int y)
 {
     _playerX = x << CELL_SIZE_SHIFT;