Matis Requis 201241242
Dependencies: mbed
Tempest Game
Game Screen
The board is made of 12 columns. The Hero stays at the top of the column
Game Controls
To control the hero spaceship point the joystick to the column you want the hero to go to.
Press the A button to shoot a bullet in the column you are currently in.
Diff: TempestEngine/TempestEngine.cpp
- Revision:
- 2:d59a92e65bd9
- Child:
- 3:54132cf073d7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TempestEngine/TempestEngine.cpp Tue May 19 10:18:06 2020 +0000 @@ -0,0 +1,39 @@ +#include "TempestEngine.h" + +TempestEngine::TempestEngine() { + +} + +TempestEngine::~TempestEngine() { + +} + + +void TempestEngine::init(int column_amount, int bullet_speed) { + _column_amount = column_amount; + _bullet_speed = bullet_speed; + + + } + +void TempestEngine::readinput(Gamepad &pad) { + _d = pad.get_direction(); + _a = pad.A_pressed(); + } + +void TempestEngine::draw(N5110 &lcd) { + + /* + //score + print_score(lcd); + + //draw hero ship + _hero.draw(lcd); + + //draw ennemies + _ennemy.draw(lcd); + + //draw bullets + _bullet.draw(lcd); */ + + } \ No newline at end of file