![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
Diff: GameEngine/RocketRacer.h
- Revision:
- 9:edb39a8334ee
- Parent:
- 8:b547037f42be
- Child:
- 10:7323785c071c
diff -r b547037f42be -r edb39a8334ee GameEngine/RocketRacer.h --- a/GameEngine/RocketRacer.h Tue Mar 26 13:07:12 2019 +0000 +++ b/GameEngine/RocketRacer.h Wed Mar 27 00:04:00 2019 +0000 @@ -3,6 +3,8 @@ #include "mbed.h" #include "N5110.h" +#include <cstdlib> +#include <ctime> #include "Gamepad.h" @@ -14,7 +16,19 @@ void MainGameDisplay(N5110 &lcd); void EndGame(N5110 &lcd); - void GameLoop(Gamepad &pad); + void GameLoop(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;