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.
Game/Game.cpp
- Committer:
- joshdavy
- Date:
- 2019-04-02
- Revision:
- 2:b62e8be35a5d
- Parent:
- 1:37802772843e
- Child:
- 3:b34685dbdb8d
File content as of revision 2:b62e8be35a5d:
#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)
{
lcd.clear();
_player.render(lcd);
lcd.refresh();
}