![](/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-03-30
- Revision:
- 12:1d3b0218d8d0
- Parent:
- 11:d4aaa959bb20
- Child:
- 13:cec06eb1d7b0
File content as of revision 12:1d3b0218d8d0:
#ifndef ROCKETRACER_H #define ROCKETRACER_H #include "mbed.h" #include "N5110.h" #include <cstdlib> #include <ctime> #include "Gamepad.h" class RocketRacer{ public: 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 enemy_0_pos, enemy_1_pos, enemy_phase; // int Joy_X; // int game_speed; // int score; // char POS; // bool enemy_dead; // bool control; }; #endif