Matis Requis 201241242

Dependencies:   mbed

Tempest Game

Game Screen

https://os.mbed.com/media/uploads/MatisRequis/tempest_board_wiki.png The board is made of 12 columns. The Hero stays at the top of the column

Game Controls

https://os.mbed.com/media/uploads/MatisRequis/gamepad_buttons.png

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.

Revision:
6:037dfa5064a1
Parent:
4:8e3ba8d6d915
Child:
7:94bc3e21d664
--- a/TempestEngine/TempestEngine.h	Fri May 22 10:37:26 2020 +0000
+++ b/TempestEngine/TempestEngine.h	Mon May 25 07:46:48 2020 +0000
@@ -4,10 +4,12 @@
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
-//#include "Bullet.h"
+#include "Bullet.h"
 #include "Hero.h"
 #include "Board.h"
 
+#include <vector>
+
 class TempestEngine {
 
 public:
@@ -19,17 +21,25 @@
     void read_input(Gamepad &pad);
     void draw(N5110 &lcd);
     void update();
+    void create_bullets();
+    void draw_bullets(N5110 &lcd);
     
 private:
+    //////////////////OBJECTS////////////////////
+    Board _board;
+    Hero _hero;
+    Gamepad _pad;
     
+    /////////////////VARIABLES////////////////
     int _column_amount;
     int _bullet_speed;
     float _d;
     int _mag;
     int _a;
-    Board _board;
-    Hero _hero;
-    Gamepad _pad;
+    int _bullet_timer;
+    
+    /////////////////VECTOR/////////////////
+    std::vector<Bullet> bullet_vect;
 };
 
 #endif
\ No newline at end of file