Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GameEngine/GameEngine.h@7:0af4ced868f5, 2020-04-18 (annotated)
- Committer:
- evanso
- Date:
- Sat Apr 18 16:36:52 2020 +0000
- Revision:
- 7:0af4ced868f5
- Child:
- 8:dd1037c5435b
A random map now is drawn on the screen and the map moves with joystick input making it look like the spaceship is moving through the map.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
evanso | 7:0af4ced868f5 | 1 | #ifndef GAMEENIGNE_H |
evanso | 7:0af4ced868f5 | 2 | #define GAMEENIGNE_H |
evanso | 7:0af4ced868f5 | 3 | |
evanso | 7:0af4ced868f5 | 4 | // Include libraries |
evanso | 7:0af4ced868f5 | 5 | #include "mbed.h" |
evanso | 7:0af4ced868f5 | 6 | #include "N5110.h" |
evanso | 7:0af4ced868f5 | 7 | #include "Gamepad.h" |
evanso | 7:0af4ced868f5 | 8 | |
evanso | 7:0af4ced868f5 | 9 | /** Spaceship class |
evanso | 7:0af4ced868f5 | 10 | @brief Draws and moves spaceship |
evanso | 7:0af4ced868f5 | 11 | @author Benjamin Evans, University of Leeds |
evanso | 7:0af4ced868f5 | 12 | @date April 2020 |
evanso | 7:0af4ced868f5 | 13 | */ |
evanso | 7:0af4ced868f5 | 14 | |
evanso | 7:0af4ced868f5 | 15 | class GameEngine { |
evanso | 7:0af4ced868f5 | 16 | public: |
evanso | 7:0af4ced868f5 | 17 | /** Constructor */ |
evanso | 7:0af4ced868f5 | 18 | GameEngine(); |
evanso | 7:0af4ced868f5 | 19 | |
evanso | 7:0af4ced868f5 | 20 | /** Destructor */ |
evanso | 7:0af4ced868f5 | 21 | ~GameEngine(); |
evanso | 7:0af4ced868f5 | 22 | |
evanso | 7:0af4ced868f5 | 23 | /** Initalises Spaceship */ |
evanso | 7:0af4ced868f5 | 24 | void init(); |
evanso | 7:0af4ced868f5 | 25 | |
evanso | 7:0af4ced868f5 | 26 | |
evanso | 7:0af4ced868f5 | 27 | |
evanso | 7:0af4ced868f5 | 28 | private: |
evanso | 7:0af4ced868f5 | 29 | |
evanso | 7:0af4ced868f5 | 30 | }; |
evanso | 7:0af4ced868f5 | 31 | |
evanso | 7:0af4ced868f5 | 32 | #endif |