Mochu Yao explorer game
Dependencies: mbed
Diff: Gameengine/Gameengine.cpp
- Revision:
- 37:9e6c56fcc738
- Parent:
- 36:cdfba51a0a44
--- a/Gameengine/Gameengine.cpp Wed May 13 08:49:44 2020 +0000 +++ b/Gameengine/Gameengine.cpp Thu May 14 13:59:24 2020 +0000 @@ -57,8 +57,7 @@ _player.set_y_coordinate(X_flag, _jump_height, _y_flag); } _f_flag = _player.get_fall_flag(); _player_y = _player.get_y(); - _jump_height = _player.get_jump_height(); - _y_flag = _player.get_y_flag(); } + _jump_height = _player.get_jump_height();} void Gameengine::set_fall_flag() { if (((set_line_1.right < _player_x) && (_player_x < (set_line_1.left - 5))) && (_y_flag == 0)) {