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@4:afbf3dd71403, 2019-04-06 (annotated)
- Committer:
- joshdavy
- Date:
- Sat Apr 06 11:47:18 2019 +0000
- Revision:
- 4:afbf3dd71403
- Parent:
- 3:b34685dbdb8d
- Child:
- 7:68e06dda79f7
Began implemting music playing class
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 | 4:afbf3dd71403 | 20 | void update(Gamepad &pad); |
| joshdavy | 3:b34685dbdb8d | 21 | }; |
| joshdavy | 3:b34685dbdb8d | 22 | |
| joshdavy | 3:b34685dbdb8d | 23 | #endif |