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 FXOS8700CQ mbed-rtos
Game_two/Game_two.h
- Committer:
- yfkwok
- Date:
- 2019-04-18
- Revision:
- 14:abe64fe0b6a5
- Parent:
- 13:02002658e718
- Child:
- 19:903d67bb0dea
File content as of revision 14:abe64fe0b6a5:
#ifndef GAME_TWO_H #define GAME_TWO_H #include "mbed.h" #include "N5110.h" #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 { public: 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; }; #endif