ELEC2645 (2019/20)
/
ELEC2645_Project_el18jb
test 1 doc
Diff: Player/Player.h
- Revision:
- 5:928c2eee4109
- Parent:
- 3:e4e1cbf750b6
- Child:
- 7:530ca713d2b2
diff -r cf5088ace087 -r 928c2eee4109 Player/Player.h --- a/Player/Player.h Mon May 18 18:46:13 2020 +0000 +++ b/Player/Player.h Fri May 22 01:26:24 2020 +0000 @@ -20,6 +20,7 @@ bool jump(Gamepad &pad); //bool is_jumping(); void draw(N5110 &lcd); + bool floorCollide(); void update(Direction d, float mag); Vector2D get_pos(); @@ -28,7 +29,7 @@ int _vy; int _playerX; int _playerY; - bool _jmp; + bool _floorCollision; char _dir; };