Yang Meng
/
207_program
Similar to the example code.
Bird/Bird.h
- Committer:
- 2016110307
- Date:
- 2019-04-23
- Revision:
- 0:97418ec4c37d
- Child:
- 1:85ab0d979b57
File content as of revision 0:97418ec4c37d:
#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