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.
Player/Player.h@3:b34685dbdb8d, 2019-04-02 (annotated)
- Committer:
- joshdavy
- Date:
- Tue Apr 02 12:40:31 2019 +0000
- Revision:
- 3:b34685dbdb8d
- Child:
- 4:afbf3dd71403
Moved player to its own inherited class to allow sprite to serve multiple puporses
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joshdavy | 3:b34685dbdb8d | 1 | #ifndef PLAYER_H |
joshdavy | 3:b34685dbdb8d | 2 | #define PLAYER_H |
joshdavy | 3:b34685dbdb8d | 3 | |
joshdavy | 3:b34685dbdb8d | 4 | #include "mbed.h" |
joshdavy | 3:b34685dbdb8d | 5 | #include "N5110.h" |
joshdavy | 3:b34685dbdb8d | 6 | #include "Gamepad.h" |
joshdavy | 3:b34685dbdb8d | 7 | #include "Bitmap.h" |
joshdavy | 3:b34685dbdb8d | 8 | #include "Sprite.h" |
joshdavy | 3:b34685dbdb8d | 9 | |
joshdavy | 3:b34685dbdb8d | 10 | #define GRAVITY 2 |
joshdavy | 3:b34685dbdb8d | 11 | /*Sprite Class*/ |
joshdavy | 3:b34685dbdb8d | 12 | |
joshdavy | 3:b34685dbdb8d | 13 | //extern N5110 lcd; |
joshdavy | 3:b34685dbdb8d | 14 | |
joshdavy | 3:b34685dbdb8d | 15 | class Player : public Sprite{ |
joshdavy | 3:b34685dbdb8d | 16 | |
joshdavy | 3:b34685dbdb8d | 17 | public: |
joshdavy | 3:b34685dbdb8d | 18 | Player(); |
joshdavy | 3:b34685dbdb8d | 19 | ~Player(); |
joshdavy | 3:b34685dbdb8d | 20 | update(Gamepad &pad); |
joshdavy | 3:b34685dbdb8d | 21 | }; |
joshdavy | 3:b34685dbdb8d | 22 | |
joshdavy | 3:b34685dbdb8d | 23 | #endif |