![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Matis Requis 201241242
Dependencies: mbed
Tempest Game
Game Screen
The board is made of 12 columns. The Hero stays at the top of the column
Game Controls
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.
Board/Board.h@8:5feb1913bc92, 2020-05-25 (annotated)
- Committer:
- MatisRequis
- Date:
- Mon May 25 11:40:15 2020 +0000
- Revision:
- 8:5feb1913bc92
- Parent:
- 3:54132cf073d7
- Child:
- 9:759b419fec3b
Bullets work with anti spam and all in the right direction
Who changed what in which revision?
User | Revision | Line number | New 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 | 8:5feb1913bc92 | 8 | #include <algorithm> |
MatisRequis | 8:5feb1913bc92 | 9 | |
MatisRequis | 3:54132cf073d7 | 10 | |
MatisRequis | 2:d59a92e65bd9 | 11 | class Board { |
MatisRequis | 2:d59a92e65bd9 | 12 | public: |
MatisRequis | 2:d59a92e65bd9 | 13 | Board(); |
MatisRequis | 2:d59a92e65bd9 | 14 | ~Board(); |
MatisRequis | 2:d59a92e65bd9 | 15 | void draw(N5110 &lcd); |
MatisRequis | 2:d59a92e65bd9 | 16 | void path(); |
MatisRequis | 8:5feb1913bc92 | 17 | void drawpath(int x0, int y0, int x1, int y1, Vector2D array[14]); |
MatisRequis | 8:5feb1913bc92 | 18 | Vector2D drawcolumn[12][14]; |
MatisRequis | 8:5feb1913bc92 | 19 | void reverse(Vector2D array, int col); |
MatisRequis | 2:d59a92e65bd9 | 20 | |
MatisRequis | 2:d59a92e65bd9 | 21 | |
MatisRequis | 2:d59a92e65bd9 | 22 | private: |
MatisRequis | 3:54132cf073d7 | 23 | |
MatisRequis | 2:d59a92e65bd9 | 24 | |
MatisRequis | 2:d59a92e65bd9 | 25 | }; |
MatisRequis | 2:d59a92e65bd9 | 26 | #endif |