![](/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.
TempestEngine/TempestEngine.h@3:54132cf073d7, 2020-05-21 (annotated)
- Committer:
- MatisRequis
- Date:
- Thu May 21 07:10:22 2020 +0000
- Revision:
- 3:54132cf073d7
- Parent:
- 2:d59a92e65bd9
- Child:
- 4:8e3ba8d6d915
Fixed board drawpath
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MatisRequis | 2:d59a92e65bd9 | 1 | #ifndef TEMPESTENGINE_H |
MatisRequis | 2:d59a92e65bd9 | 2 | #define TEMPESTENGINE_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 | //#include "Bullet.h" |
MatisRequis | 2:d59a92e65bd9 | 8 | //#include "Hero.h" |
MatisRequis | 3:54132cf073d7 | 9 | #include "Board.h" |
MatisRequis | 2:d59a92e65bd9 | 10 | |
MatisRequis | 2:d59a92e65bd9 | 11 | class TempestEngine { |
MatisRequis | 2:d59a92e65bd9 | 12 | |
MatisRequis | 2:d59a92e65bd9 | 13 | public: |
MatisRequis | 2:d59a92e65bd9 | 14 | |
MatisRequis | 2:d59a92e65bd9 | 15 | TempestEngine(); |
MatisRequis | 2:d59a92e65bd9 | 16 | ~TempestEngine(); |
MatisRequis | 2:d59a92e65bd9 | 17 | |
MatisRequis | 2:d59a92e65bd9 | 18 | void init(int column_amount, int bullet_speed); |
MatisRequis | 2:d59a92e65bd9 | 19 | void readinput(Gamepad &pad); |
MatisRequis | 2:d59a92e65bd9 | 20 | void draw(N5110 &lcd); |
MatisRequis | 2:d59a92e65bd9 | 21 | |
MatisRequis | 2:d59a92e65bd9 | 22 | private: |
MatisRequis | 2:d59a92e65bd9 | 23 | |
MatisRequis | 2:d59a92e65bd9 | 24 | int _column_amount; |
MatisRequis | 2:d59a92e65bd9 | 25 | int _bullet_speed; |
MatisRequis | 2:d59a92e65bd9 | 26 | int _d; |
MatisRequis | 2:d59a92e65bd9 | 27 | int _a; |
MatisRequis | 3:54132cf073d7 | 28 | Board _board; |
MatisRequis | 2:d59a92e65bd9 | 29 | }; |
MatisRequis | 2:d59a92e65bd9 | 30 | |
MatisRequis | 2:d59a92e65bd9 | 31 | #endif |