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.

Committer:
MatisRequis
Date:
Tue May 19 10:18:06 2020 +0000
Revision:
2:d59a92e65bd9
Child:
3:54132cf073d7
Add board, hero, TempestGame, and Bullet classes. Most of the draw() functions are done.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MatisRequis 2:d59a92e65bd9 1 #ifndef BOARD_H
MatisRequis 2:d59a92e65bd9 2 #define BOARD_H
MatisRequis 2:d59a92e65bd9 3
MatisRequis 2:d59a92e65bd9 4 #include "mbed.h"
MatisRequis 2:d59a92e65bd9 5 #include "N5110.h"
MatisRequis 2:d59a92e65bd9 6 #include "Gamepad.h"
MatisRequis 2:d59a92e65bd9 7
MatisRequis 2:d59a92e65bd9 8 class Board {
MatisRequis 2:d59a92e65bd9 9 public:
MatisRequis 2:d59a92e65bd9 10 Board();
MatisRequis 2:d59a92e65bd9 11 ~Board();
MatisRequis 2:d59a92e65bd9 12 void draw(N5110 &lcd);
MatisRequis 2:d59a92e65bd9 13 void path();
MatisRequis 2:d59a92e65bd9 14 void drawpath(int x0, int y0, int x1, int y1, Vector2D array[]);
MatisRequis 2:d59a92e65bd9 15 Vector2D column0[];
MatisRequis 2:d59a92e65bd9 16 Vector2D column1[];
MatisRequis 2:d59a92e65bd9 17 Vector2D column2[];
MatisRequis 2:d59a92e65bd9 18
MatisRequis 2:d59a92e65bd9 19 Vector2D column3[];
MatisRequis 2:d59a92e65bd9 20 Vector2D column4[];
MatisRequis 2:d59a92e65bd9 21 Vector2D column5[];
MatisRequis 2:d59a92e65bd9 22
MatisRequis 2:d59a92e65bd9 23 Vector2D column6[];
MatisRequis 2:d59a92e65bd9 24 Vector2D column7[];
MatisRequis 2:d59a92e65bd9 25 Vector2D column8[];
MatisRequis 2:d59a92e65bd9 26
MatisRequis 2:d59a92e65bd9 27 Vector2D column9[];
MatisRequis 2:d59a92e65bd9 28 Vector2D column10[];
MatisRequis 2:d59a92e65bd9 29 Vector2D column11[];
MatisRequis 2:d59a92e65bd9 30
MatisRequis 2:d59a92e65bd9 31
MatisRequis 2:d59a92e65bd9 32 private:
MatisRequis 2:d59a92e65bd9 33
MatisRequis 2:d59a92e65bd9 34
MatisRequis 2:d59a92e65bd9 35 };
MatisRequis 2:d59a92e65bd9 36 #endif