contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
Diff: GameEngine/RocketRacer.h
- Revision:
- 13:cec06eb1d7b0
- Parent:
- 12:1d3b0218d8d0
- Child:
- 14:8df7e6fced07
diff -r 1d3b0218d8d0 -r cec06eb1d7b0 GameEngine/RocketRacer.h --- a/GameEngine/RocketRacer.h Sat Mar 30 13:01:59 2019 +0000 +++ b/GameEngine/RocketRacer.h Wed Apr 03 08:50:46 2019 +0000 @@ -13,9 +13,12 @@ class RocketRacer{ public: + RocketRacer(); Gamepad Mypad; + void Main_Game_Display(N5110 &lcd); void End_Game(Gamepad &pad,N5110 &lcd); + void Game_difficulty(Gamepad &pad); void Generate_New_Enemy(); void Check_Enemy_Dead(N5110 &lcd,Gamepad &pad); @@ -26,13 +29,13 @@ private: - //int enemy_0_pos, enemy_1_pos, enemy_phase; -// int Joy_X; -// int game_speed; -// int score; -// char POS; -// bool enemy_dead; -// bool control; + int first_enemy_position, second_enemy_position, enemy_phase; + + int game_speed; + int score; + char POS; + bool enemy_dead; + bool control;