Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: GameEngine/GameEngine.h
- Revision:
- 12:4d7f1349d796
- Parent:
- 11:cb48d596aa3e
- Child:
- 14:cf4a32245152
--- a/GameEngine/GameEngine.h Thu May 03 22:34:03 2018 +0000 +++ b/GameEngine/GameEngine.h Fri May 04 21:19:34 2018 +0000 @@ -18,30 +18,30 @@ void init(); void read_input(Gamepad &g_pad); void draw(N5110 &lcd); - void update(Gamepad &pad, N5110 &lcd); - void print_scores(N5110 &lcd); - void print_scores1(N5110 &lcd); - int get_gameOver1(); - /* void sec(); - int get_time(); - void print_sec(N5110 &lcd); - Ticker ticker; - void timer_ist(); - void print_sec_over(N5110 &lcd);*/ - + void update(Gamepad &pad); + void draw_hearts(N5110 &lcd); + int check_gameOver(); + void print_time(N5110 &lcd); + void time_increment(); + void time_stop(); + void print_travel_time(N5110 &lcd); + private: + void check_collision1(Gamepad &pad); + void check_collision2(Gamepad &pad); + void check_collision3(Gamepad &pad); + Rocket _rocket; Asteroid _asteroid1; Asteroid _asteroid2; Asteroid _asteroid3; Direction _d; float _mag; - void check_goal(Gamepad &pad); - int score; int gameOver; - // int Sec; - //int g_timer_flag; + Timer time; + int _time; + }; #endif