![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
GameEngine/RocketRacer.h
- Committer:
- OmarAlebiary
- Date:
- 2019-04-07
- Revision:
- 16:93a8147a4358
- Parent:
- 15:8a768106c297
- Child:
- 17:989ff25612ad
File content as of revision 16:93a8147a4358:
#ifndef ROCKETRACER_H #define ROCKETRACER_H #include "mbed.h" #include "N5110.h" #include <cstdlib> #include <ctime> #include "Gamepad.h" 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); void Joystick_position(Gamepad &pad); void Game_Loop(N5110 &lcd,Gamepad &pad); void player_position(N5110 &lcd,char RocketPosition); void enemy_position(N5110 &lcd,int place, int phase); private: int first_enemy_position; int second_enemy_position; int enemy_phase; int game_speed; int score; char Init_position; bool enemy_dead; bool control; }; #endif