![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo
Dependencies: mbed Gamepad N5110
Diff: the_wall/the_wall.h
- Revision:
- 0:ba32cfe0051e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/the_wall/the_wall.h Thu May 14 12:57:32 2020 +0000 @@ -0,0 +1,32 @@ +#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 \ No newline at end of file