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.
Diff: Player/Player.h
- Revision:
- 8:d19b30a6cd69
- Parent:
- 7:530ca713d2b2
- Child:
- 9:9830d3a78572
--- a/Player/Player.h Tue May 26 01:45:20 2020 +0000 +++ b/Player/Player.h Tue May 26 22:15:42 2020 +0000 @@ -23,6 +23,7 @@ bool floorCollide(); void update(Direction d, float mag, int Ypos, bool fall, bool jump); Vector2D get_pos(); + private: int _vx; @@ -30,7 +31,8 @@ int _playerX; int _playerY; bool _floorCollision; - char _dir; + char _dir; + Timer t; };