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.
Diff: Game/Game.cpp
- Revision:
- 6:2ca1516ec1e2
- Parent:
- 4:afbf3dd71403
- Child:
- 7:68e06dda79f7
--- a/Game/Game.cpp Sat Apr 06 14:42:34 2019 +0000 +++ b/Game/Game.cpp Wed Apr 10 11:03:07 2019 +0000 @@ -13,12 +13,19 @@ }; +Vector2D blocks[2][2] = { + { {30,6},{35,10} }, + { {5,10},{2,6} } +}; + Game::Game() { Vector2D pos = {20,20}; _player.init(6,6,(int *)player_bitmap,pos); - _player.flip(); + //_player.flip(); + + _level.init(blocks,2); } @@ -43,6 +50,7 @@ lcd.clear(); _player.render(lcd); + _level.render(lcd); lcd.refresh(); }