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: Levelengine.cpp
- Revision:
- 11:61f28e3448d3
- Parent:
- 10:65a6866d418b
- Child:
- 12:adf4ec04ced2
diff -r 65a6866d418b -r 61f28e3448d3 Levelengine.cpp
--- a/Levelengine.cpp Wed Mar 27 21:51:11 2019 +0000
+++ b/Levelengine.cpp Thu Mar 28 01:07:49 2019 +0000
@@ -8,23 +8,19 @@
{
}
-void Levelengine::test_level(N5110 &lcd)
+void Levelengine::central_cavern(N5110 &lcd)
{
-
- //Border
- lcd.drawRect(0,0,1,HEIGHT,FILL_BLACK);
- lcd.drawRect(0,0,WIDTH,1,FILL_BLACK);
- lcd.drawRect(WIDTH -1,0,1,48,FILL_BLACK);
- lcd.drawRect(0,HEIGHT -1,84,1,FILL_BLACK);
-
//platforms
-
- //lcd.drawRect(0,41,34,2,FILL_BLACK);
+ lcd.drawRect(0,HEIGHT -1,84,1,FILL_BLACK);
+ lcd.drawRect(11,HEIGHT - 9, 44, 2, FILL_TRANSPARENT);
+ lcd.drawRect(55,HEIGHT - 11, 30, 2, FILL_TRANSPARENT);
+ lcd.drawRect(WIDTH - 9,HEIGHT - 19, 8, 2, FILL_BLACK);
+ lcd.drawRect(22, 25, 48, 2, FILL_BLACK);
+ lcd.drawRect(0, 25, 12, 2, FILL_BLACK);
+ lcd.drawRect(0, 17, 8, 2, FILL_BLACK);
+ lcd.drawRect(0, 9, 84, 2, FILL_BLACK);
- lcd.drawRect(20,HEIGHT - 12, 40, 2, FILL_TRANSPARENT);
- lcd.drawRect(68,HEIGHT - 4, 24, 2, FILL_TRANSPARENT);
- lcd.drawRect(75,HEIGHT - 8, 12, 2, FILL_TRANSPARENT);
}