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:
12:1f1907ebebeb
Parent:
11:b6698572e551
--- a/Hero/Hero.cpp	Wed May 27 05:44:34 2020 +0000
+++ b/Hero/Hero.cpp	Wed May 27 05:53:03 2020 +0000
@@ -13,7 +13,7 @@
     _column = column;
 }
 
-//draws the hero depending on the column
+//draws the hero
 void Hero::draw(N5110 &lcd) {
 
     Vector2D xypos = getxy();
@@ -21,7 +21,7 @@
     _x = xypos.x;
     _y = xypos.y;
     
-    changes the orientation of the hero depending on the current column
+    //changes the orientation of the hero depending on the current column
     if (_column < 3 && _column >= 0) {
         lcd.drawRect(_x+4, _y, 6, 2, FILL_BLACK);
         lcd.drawLine(_x+2, _y+1, _x+11, _y+1, 1);