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:
- 14:dc3524d11921
- Parent:
- 13:3bf02cb26d6d
- Child:
- 15:2bda80896a84
diff -r 3bf02cb26d6d -r dc3524d11921 Levelengine.cpp
--- a/Levelengine.cpp Thu Mar 28 22:32:09 2019 +0000
+++ b/Levelengine.cpp Fri Mar 29 00:30:03 2019 +0000
@@ -16,14 +16,25 @@
//platforms
lcd.drawRect(0,HEIGHT -1,84,1,FILL_BLACK);
- lcd.drawRect(11,HEIGHT - 9, 44, 2, FILL_TRANSPARENT);
+ lcd.drawRect(11,HEIGHT - 9, 38, 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);
+
+ //solid blocks
+
+ lcd.drawSprite(49,37,3,3,(int *)solid_block);
+ lcd.drawSprite(52,37,3,3,(int *)solid_block);
}
+void Levelengine::collision_points(N5110 &lcd, Gamepad &pad)
+{
+ Vector2D miner_pos = miner.get_pos();
+ printf("Level x = %f \n", miner_pos.x);
+}
+