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@3:10918b0f7a7d, 2019-02-28 (annotated)
- Committer:
- Noximilien
- Date:
- Thu Feb 28 16:13:06 2019 +0000
- Revision:
- 3:10918b0f7a7d
- Child:
- 4:02c63aaa2df9
I have created game.cpp file where the actual game will be happening. I have created one model of a spaceship and stored in header file. Have linked game and main together. ; ; However I cannot find a way of how to read buttons.
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 | 3:10918b0f7a7d | 4 | |
Noximilien | 3:10918b0f7a7d | 5 | void game_start(N5110 &lcd, int x, int y); |
Noximilien | 3:10918b0f7a7d | 6 | |
Noximilien | 3:10918b0f7a7d | 7 | class game{ |
Noximilien | 3:10918b0f7a7d | 8 | public: |
Noximilien | 3:10918b0f7a7d | 9 | |
Noximilien | 3:10918b0f7a7d | 10 | private: |
Noximilien | 3:10918b0f7a7d | 11 | |
Noximilien | 3:10918b0f7a7d | 12 | void drawSpaceship(N5110 &lcd, int x, int y); |
Noximilien | 3:10918b0f7a7d | 13 | }; |
Noximilien | 3:10918b0f7a7d | 14 | |
Noximilien | 3:10918b0f7a7d | 15 | |
Noximilien | 3:10918b0f7a7d | 16 | #endif |