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@7:68e06dda79f7, 2019-04-17 (annotated)
- Committer:
- joshdavy
- Date:
- Wed Apr 17 12:39:46 2019 +0000
- Revision:
- 7:68e06dda79f7
- Parent:
- 4:afbf3dd71403
- Child:
- 8:21b6d4dbce44
Level Rendering Complete. Basic Collision Detection.;
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 | 7:68e06dda79f7 | 9 | #include "Level.h" |
joshdavy | 3:b34685dbdb8d | 10 | |
joshdavy | 3:b34685dbdb8d | 11 | #define GRAVITY 2 |
joshdavy | 3:b34685dbdb8d | 12 | /*Sprite Class*/ |
joshdavy | 3:b34685dbdb8d | 13 | |
joshdavy | 3:b34685dbdb8d | 14 | //extern N5110 lcd; |
joshdavy | 3:b34685dbdb8d | 15 | |
joshdavy | 3:b34685dbdb8d | 16 | class Player : public Sprite{ |
joshdavy | 3:b34685dbdb8d | 17 | |
joshdavy | 3:b34685dbdb8d | 18 | public: |
joshdavy | 3:b34685dbdb8d | 19 | Player(); |
joshdavy | 3:b34685dbdb8d | 20 | ~Player(); |
joshdavy | 7:68e06dda79f7 | 21 | void update(Gamepad &pad, Block blocks [],int number_of_blocks); |
joshdavy | 7:68e06dda79f7 | 22 | |
joshdavy | 7:68e06dda79f7 | 23 | private: |
joshdavy | 7:68e06dda79f7 | 24 | int _orientation; |
joshdavy | 3:b34685dbdb8d | 25 | }; |
joshdavy | 3:b34685dbdb8d | 26 | |
joshdavy | 3:b34685dbdb8d | 27 | #endif |