Doxygen comments added
Dependencies: mbed Gamepad N5110
Diff: Pipes/Pipes.cpp
- Revision:
- 3:5409b50b01b0
- Child:
- 4:e98b22e5d5e8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Pipes/Pipes.cpp Tue Apr 23 17:09:28 2019 +0000 @@ -0,0 +1,16 @@ +#include "Pipes.h" + +void Pipes::init(int x, int height) { + _x = x; + _height = height; + } + +void Pipes::draw(N5110 &lcd) { + lcd.drawRect(_x,0,5,_height,FILL_BLACK); + lcd.drawRect(_x,(_height+20),5,(84-(_height+20)),FILL_BLACK); + } + //if(_x<1) { + //_height = rand() % (20 + 1 - 2) + 2; + //_x=84; + //} + //} \ No newline at end of file