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:
10:2ae9d4145410
Parent:
9:759b419fec3b
--- a/Board/Board.h	Tue May 26 07:26:13 2020 +0000
+++ b/Board/Board.h	Tue May 26 16:31:22 2020 +0000
@@ -1,25 +1,47 @@
 #ifndef BOARD_H
 #define BOARD_H
 
+// Included Libraries
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
 
 #include <algorithm>
 
-
+/** Board Class
+ * @brief Draws the game board and draws the paths the bullets and aliens take
+ * @author Matis Requis
+ * @date May, 2020
+ */
 class Board {
 public:
+
+    /** Constructor */
     Board();
+    
+    /** Destructor */
     ~Board();
+    
+    /** Draws the board
+     * @param lcd @details N5110 object
+     */
     void draw(N5110 &lcd);
+    
+    /** Generates a path for each column that the alien and bullet use */
     void path();
+    
+    /** Function that uses the bresenham line algorithm to generate an array in a line
+     * @param x0 @details x coordinate of the first point
+     * @param y0 @details y coordinate of the first point
+     * @param x1 @details x coordinate of the second point
+     * @param y1 @details y coordinate of the second point
+     * @param array[14] @details Vector2D array to store the points of the line
+     */
     void drawpath(int x0, int y0, int x1, int y1, Vector2D array[14]);
+    
+    /** Vector2D struct used to store the path */
     Vector2D drawcolumn[12][14];
     
     
-private:
-    
-
 };
 #endif
\ No newline at end of file