![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.
Dependencies: mbed FXOS8700CQ mbed-rtos
Diff: Game_two/Game_two.h
- Revision:
- 14:abe64fe0b6a5
- Parent:
- 13:02002658e718
- Child:
- 19:903d67bb0dea
--- a/Game_two/Game_two.h Wed Apr 17 17:53:56 2019 +0000 +++ b/Game_two/Game_two.h Thu Apr 18 04:53:04 2019 +0000 @@ -6,6 +6,11 @@ #include "Gamepad.h" #include "Score.h" #include "FXOS8700CQ.h" +#include "Game_two_cha.h" +#include "Insta.h" +#include "Facebook.h" +#include "Twitter.h" +#include "YouTube.h" class Game_two { @@ -14,17 +19,45 @@ Game_two(); ~Game_two(); void init(int speed, int cha, int r); + void render(N5110 &lcd, int cha); + void read_input(FXOS8700CQ &device); + void update(Gamepad &pad, N5110 &lcd, int cha); + void draw(N5110 &lcd, int cha); + int get_count(); + int update_alt(); + void set_alt(int alt); + void intro(Gamepad &pad, N5110 &lcd); private: + void check_insta_collide(Gamepad &pad, N5110 &lcd, int cha); + void check_miss_insta(Gamepad &pad); + void check_face_collide(Gamepad &pad, N5110 &lcd, int cha); + void check_miss_face(Gamepad &pad); + void check_twitt_collide(Gamepad &pad, N5110 &lcd, int cha); + void check_miss_twitt(Gamepad &pad); + void check_yt_collide(Gamepad &pad, N5110 &lcd, int cha); + void check_miss_yt(Gamepad &pad); + void gameover(N5110 &lcd, Gamepad &pad); + void set_count(int count); + Score music; FXOS8700CQ device(I2C* sda, I2C* scl); + Game_two_cha _p1; + Insta _insta; + Facebook _face; + Twitter _twitt; + YouTube _yt; + Direction _d; + float _mag; int _speed; int _cha; int _rand; int _count; int _alt; + int _type; + int _so; };