Mochu Yao explorer game
Dependencies: mbed
Diff: Gameengine/Gameengine.h
- Revision:
- 23:7be9701fc1b8
- Parent:
- 14:5e73a6e34c17
- Child:
- 26:4d193529b447
--- a/Gameengine/Gameengine.h Tue Apr 28 16:58:19 2020 +0000 +++ b/Gameengine/Gameengine.h Tue Apr 28 17:19:55 2020 +0000 @@ -14,17 +14,13 @@ struct Coordinate { Vector2D coord; /**< Vector 2D for joystick coords */ }; - -//* @the enginee file has these functions -// 1 make the whole explorer game run and set the score the reset process -// 2 cheak the collision and the reset or fall flag -// 3 draw on the lcd screen and load the gamepad controll -//* @date April 24th 2020 -//* @author Yaomochu - /** Gameengine Class - -@code +* @1 make the whole explorer game run and set the score the reset process +* @2 cheak the collision and the reset or fall flag +* @3 draw on the lcd screen and load the gamepad controll +* @date April 24th 2020 +* @author Yaomochu +* @code #include "mbed.h" #include "N5110.h" @@ -56,7 +52,7 @@ } } -@endcode +* @endcode */ class Gameengine { @@ -88,16 +84,16 @@ item _item; Explorer _player; Surface _surface; - bool X_flag; - int _player_x; - int _player_y; - bool _collision_flag; - bool _f_flag; - bool _r_flag; - bool _start_flag; - int _speed; - int _jump_height; - int _player_score; +bool X_flag; +int _player_x; +int _player_y; +bool _collision_flag; +bool _f_flag; +bool _r_flag; +bool _start_flag; +int _speed; +int _jump_height; +int _player_score; Line set_line_1; Line set_line_2; Line set_line_3;