ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
4:8ec314f806ae
Parent:
3:116913e97fd7
Child:
5:8814d6de77d0
--- a/main.cpp	Wed Apr 10 19:07:41 2019 +0000
+++ b/main.cpp	Thu Apr 11 14:44:14 2019 +0000
@@ -3,8 +3,9 @@
 #include "N5110.h" 
 #include "Engine.h"  
 
-#define FLOORS_WIDTH rand() % 15 + 10 // floors width between 10 to 15
+#define FLOORS_WIDTH 12 
 #define FLOORS_HEIGHT 2
+#define DOODLER_RADIUS 3
 
 // objects
 N5110 lcd(PTC5,PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); // START, LCD SCE, LCD RST, LCD DC, LCD MOSI, LCD CLK, LCD Backlight
@@ -32,7 +33,7 @@
     // need to initialise LCD and Gamepad 
     lcd.init();
     pad.init();
-    eng.init(FLOORS_WIDTH, FLOORS_HEIGHT);
+    eng.init(FLOORS_WIDTH, FLOORS_HEIGHT, DOODLER_RADIUS);
 }
 
 // Starting menu screen display