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@9:759b419fec3b, 2020-05-26 (annotated)
- Committer:
- MatisRequis
- Date:
- Tue May 26 07:26:13 2020 +0000
- Revision:
- 9:759b419fec3b
- Parent:
- 8:5feb1913bc92
- Child:
- 10:2ae9d4145410
Aliens working similar to bullets with random
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 | 2:d59a92e65bd9 | 19 | |
MatisRequis | 2:d59a92e65bd9 | 20 | |
MatisRequis | 2:d59a92e65bd9 | 21 | private: |
MatisRequis | 3:54132cf073d7 | 22 | |
MatisRequis | 2:d59a92e65bd9 | 23 | |
MatisRequis | 2:d59a92e65bd9 | 24 | }; |
MatisRequis | 2:d59a92e65bd9 | 25 | #endif |