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.
Dependencies: mbed
Fork of el17dg by
game/game.h@24:0570cb4b92d7, 2019-04-02 (annotated)
- Committer:
- Noximilien
- Date:
- Tue Apr 02 15:38:40 2019 +0000
- Revision:
- 24:0570cb4b92d7
- Parent:
- 23:240bc00ef25b
- Child:
- 25:749f1efc31fc
I have created and finished a tutorial file where is described what controls need to be used and what to do in the game. I have broken up my into code into several functions to improve efficiency. I have started working on my settings mode.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Noximilien | 3:10918b0f7a7d | 1 | #ifndef GAME_H |
Noximilien | 3:10918b0f7a7d | 2 | #define GAME_H |
Noximilien | 3:10918b0f7a7d | 3 | |
Noximilien | 21:0eb394495b8a | 4 | #include "geometry.h" |
Noximilien | 21:0eb394495b8a | 5 | |
Noximilien | 24:0570cb4b92d7 | 6 | |
Noximilien | 4:02c63aaa2df9 | 7 | class Game{ |
Noximilien | 4:02c63aaa2df9 | 8 | public: |
Noximilien | 4:02c63aaa2df9 | 9 | bool updateAndDraw(); |
Noximilien | 21:0eb394495b8a | 10 | void startNewGame(); |
Noximilien | 4:02c63aaa2df9 | 11 | private: |
Noximilien | 21:0eb394495b8a | 12 | void collideEnemiesAndBlasts(); |
Noximilien | 21:0eb394495b8a | 13 | void collideEnemiesBlastsAndPlayer(); |
Noximilien | 23:240bc00ef25b | 14 | void collideEnemiesAndPlayer(); |
Noximilien | 23:240bc00ef25b | 15 | void gameOver(); |
Noximilien | 3:10918b0f7a7d | 16 | }; |
Noximilien | 3:10918b0f7a7d | 17 | |
Noximilien | 3:10918b0f7a7d | 18 | |
Noximilien | 3:10918b0f7a7d | 19 | #endif |