勇帜 周
/
2645_Final_project_1
bird
Diff: bird/bird.h
- Revision:
- 0:3887ebee1b37
- Child:
- 1:8672e52115e3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bird/bird.h Fri May 03 17:51:38 2019 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + + + +struct Data{ + int y; + }; + +class bird +{ + + +public: + + void init(int size,int speed); + void draw(N5110 &lcd); + void check(Gamepad &pad); + void init(); + Data get_data(); + void update(); + +private: + int _y; + Data _data; +};