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
GameEngine/GameEngine.cpp
- Committer:
- RehamFaqehi
- Date:
- 2018-04-18
- Revision:
- 2:3fd0d3d69556
- Child:
- 3:489437d4ebd7
File content as of revision 2:3fd0d3d69556:
#include "GameEngine.h"
GameEngine::GameEngine()
{
}
GameEngine::~GameEngine()
{
}
void GameEngine::init()
{
    _rocket.init();
}
void GameEngine::read_input(Gamepad &pad)
{
    _d = pad.get_direction();
    _mag = pad.get_mag();
}
void GameEngine::draw(N5110 &lcd)
{
    // draw the game elements in the LCD
    _rocket.draw(lcd);
  
}