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.

Files at this revision

API Documentation at this revision

Comitter:
MatisRequis
Date:
Wed May 27 05:53:03 2020 +0000
Parent:
11:b6698572e551
Commit message:
Final Submission. I have read and agreed with Statement of Academic Integrity

Changed in this revision

Hero/Hero.cpp Show annotated file Show diff for this revision Revisions of this file
TempestEngine/TempestEngine.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
--- a/TempestEngine/TempestEngine.cpp	Wed May 27 05:44:34 2020 +0000
+++ b/TempestEngine/TempestEngine.cpp	Wed May 27 05:53:03 2020 +0000
@@ -14,7 +14,7 @@
     _alienspeed = 6;
     _score = 0;
     _herolives = 3;
-    _shooting_speed = 5
+    _shooting_speed = 5;
     }
     
 //draws all the elemnts