runner
Dependencies: mbed
Diff: Obstacle/Obstacle.h
- Revision:
- 3:59e67155e2dd
- Child:
- 4:7fca66882a00
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Obstacle/Obstacle.h Thu May 09 05:01:02 2019 +0000 @@ -0,0 +1,28 @@ +#ifndef OBSTACLE_H +#define OBSTACLE_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class Obstacle +{ +public: + + Obstacle(); + ~Obstacle(); + void init(int y,int height,int width); + void draw(N5110 &lcd); + void update(); + Vector2D get_pos(); + +private: + + int _height; + int _width; + int _x; + int _y; + int _speed; + +}; +#endif \ No newline at end of file