Yang Meng
/
207_program
Similar to the example code.
Diff: Bird/Bird.h
- Revision:
- 0:97418ec4c37d
- Child:
- 1:85ab0d979b57
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bird/Bird.h Tue Apr 23 16:04:18 2019 +0000 @@ -0,0 +1,30 @@ +#ifndef BIRD_H +#define BIRD_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + +class Bird + +{ + public : + void init(); + void draw(N5110 &lcd); + void update(Gamepad &pad); + void background(N5110 &lcd); + int get_y(); + + + + + private : + int _y; + int _head; + int _speed; + +}; + +#endif + \ No newline at end of file