![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
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: Alien/Alien.h
- Revision:
- 9:759b419fec3b
- Child:
- 10:2ae9d4145410
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Alien/Alien.h Tue May 26 07:26:13 2020 +0000 @@ -0,0 +1,36 @@ +#ifndef Alien_H +#define Alien_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Board.h" + +#include <cstdlib> +#include <ctime> + + +class Alien { +public: + Alien(); + ~Alien(); + void init(int column, int speed); + void draw(N5110 &lcd); + void update(); + int checkdelete(); + int checkobjective(); + Vector2D getxy(); + +private: + int _size; + int _column; + int _x; + int _y; + Board _board; + int _currentpos; + int _rand; + int _loss; + int _movcount; + int _alienspeed; +}; +#endif \ No newline at end of file