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:
4:8e3ba8d6d915
Parent:
3:54132cf073d7
Child:
6:037dfa5064a1
diff -r 54132cf073d7 -r 8e3ba8d6d915 TempestEngine/TempestEngine.h
--- a/TempestEngine/TempestEngine.h	Thu May 21 07:10:22 2020 +0000
+++ b/TempestEngine/TempestEngine.h	Fri May 22 10:29:49 2020 +0000
@@ -5,7 +5,7 @@
 #include "N5110.h"
 #include "Gamepad.h"
 //#include "Bullet.h"
-//#include "Hero.h"
+#include "Hero.h"
 #include "Board.h"
 
 class TempestEngine {
@@ -15,17 +15,21 @@
     TempestEngine();
     ~TempestEngine();
     
-    void init(int column_amount, int bullet_speed);
-    void readinput(Gamepad &pad);
+    void init();
+    void read_input(Gamepad &pad);
     void draw(N5110 &lcd);
+    void update();
     
 private:
     
     int _column_amount;
     int _bullet_speed;
-    int _d;
+    float _d;
+    int _mag;
     int _a;
     Board _board;
+    Hero _hero;
+    Gamepad _pad;
 };
 
 #endif
\ No newline at end of file