Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 4:8ec314f806ae
- Parent:
- 3:116913e97fd7
- Child:
- 5:8814d6de77d0
diff -r 116913e97fd7 -r 8ec314f806ae main.cpp --- 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