Doxygen comments added
Dependencies: mbed Gamepad N5110
Pipes/Pipes.cpp
- Committer:
- rafeh
- Date:
- 2019-05-06
- Revision:
- 6:bc580b480ac8
- Parent:
- 4:e98b22e5d5e8
- Child:
- 7:05f433e196d6
File content as of revision 6:bc580b480ac8:
#include "Pipes.h" void Pipes::init(int x, int height) { _x = x; _height = height; } void Pipes::draw(N5110 &lcd) { lcd.drawRect(_x,0,6,_height,FILL_BLACK); lcd.drawRect((_x-1),_height,8,3,FILL_BLACK); lcd.drawRect((_x-1),(_height+23),8,3,FILL_BLACK); lcd.drawRect(_x,(_height+26),6,(84-(_height+26)),FILL_BLACK); } //if(_x<1) { //_height = rand() % (20 + 1 - 2) + 2; //_x=84; //} //}