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: Gameengine.cpp
- Revision:
- 16:8384e9a480ef
- Parent:
- 15:2bda80896a84
- Child:
- 17:b4079bd0e551
--- a/Gameengine.cpp Fri Mar 29 19:03:10 2019 +0000
+++ b/Gameengine.cpp Sat Mar 30 02:16:28 2019 +0000
@@ -25,16 +25,28 @@
_miner.miner_gravity(lcd);
_miner.miner_jump(lcd, pad);
_miner.miner_land(lcd);
- _miner.level_one_collision(lcd);
+
+
}
void Gameengine::draw(N5110 &lcd)
{
if (_level_select == 1){
-
_miner.miner_draw(lcd);
_level.level_one(lcd);
+ _level.soft_blocks(46, 8, lcd);
+ _level.soft_blocks(52, 8, lcd);
+ _level.soft_blocks(55, 36, lcd);
+ _level.soft_blocks(33, 8, lcd);
+ _level.soft_blocks(27, 8, lcd);
+ _level.soft_blocks(59, 36, lcd);
+ _level.draw_solid_block(49,37, lcd);
+ _level.draw_solid_block(52,37, lcd);
+ _level.draw_solid_block(45,22, lcd);
+ _level.draw_solid_block(42,22, lcd);
_miner.level_one_collision(lcd);
+ _level.draw_key(79, 12, lcd);
+
}
}
\ No newline at end of file