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.h
- Revision:
- 9:759b419fec3b
- Parent:
- 7:94bc3e21d664
- Child:
- 10:2ae9d4145410
--- a/TempestEngine/TempestEngine.h Mon May 25 11:40:15 2020 +0000 +++ b/TempestEngine/TempestEngine.h Tue May 26 07:26:13 2020 +0000 @@ -7,8 +7,11 @@ #include "Bullet.h" #include "Hero.h" #include "Board.h" +#include "Alien.h" #include <vector> +#include <cstdlib> +#include <ctime> class TempestEngine { @@ -21,8 +24,16 @@ void read_input(Gamepad &pad); void draw(N5110 &lcd); void update(); + + //BULLET FUNCTIONS void create_bullets(); void draw_bullets(N5110 &lcd); + void update_bullets(); + + //ALIEN FUNCTIONS + void create_aliens(); + void draw_aliens(N5110 &lcd); + void update_aliens(); private: //////////////////OBJECTS//////////////////// @@ -37,9 +48,12 @@ int _mag; int _a; int _bullet_timer; + int _alien_timer; + int _alienspeed; /////////////////VECTOR///////////////// std::vector<Bullet> bullet_vect; + std::vector<Alien> alien_vect; }; #endif \ No newline at end of file