demo
Dependencies: mbed Gamepad N5110
the_wall/the_wall.h
- Committer:
- Ting12138
- Date:
- 2020-05-14
- Revision:
- 0:ba32cfe0051e
File content as of revision 0:ba32cfe0051e:
#ifndef THE_WALL_H #define THE_WALL_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class the_wall { public: the_wall(); ~the_wall(); void init(int x,int gap,int width,int speed); void draw1(N5110 &lcd); void draw2(N5110 &lcd); void update(); void reset(); int get_x(); int get_height(); private: int _height; int _width; int _x; int _y; int _speed; int _gap; }; #endif