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:
- 1:37802772843e
- Child:
- 2:b62e8be35a5d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Game/Game.cpp Mon Mar 25 10:48:23 2019 +0000 @@ -0,0 +1,42 @@ +#include "Game.h" +// Objects + +const int player_bitmap[6][6] = { + {1,1,1,1,0,0}, + {1,0,0,1,0,0}, + {1,1,1,1,0,0}, + {0,1,1,1,1,0}, + {0,1,1,1,0,1}, + {0,1,0,1,0,0} +}; + + +Game::Game() +{ + + Vector2D pos = {20,20}; + _player.init(6,6,(int *)player_bitmap,pos); + + +} + +Game::~Game() +{ + +} + +void Game::read_input(Gamepad &pad) +{ + +} + +void Game::update(Gamepad &pad) +{ + +} + +void Game::draw(N5110 lcd) +{ + _player.render(lcd); +} +