Doxygen comments added
Dependencies: mbed Gamepad N5110
Diff: Bird/Bird.cpp
- Revision:
- 15:fc6b40fceb4f
- Parent:
- 10:75de0f4da176
--- a/Bird/Bird.cpp Thu May 09 10:25:47 2019 +0000 +++ b/Bird/Bird.cpp Thu May 09 13:46:01 2019 +0000 @@ -14,7 +14,7 @@ - void Bird::init(int xpos,int ypos) { + void Bird::init(int xpos,int ypos) { //initialises the x and y position of the bird _xpos=xpos; _ypos=ypos; @@ -23,7 +23,7 @@ - void Bird::draw(N5110 &lcd) { + void Bird::draw(N5110 &lcd) { //draw the bird shape on the lcd const int shape [6][6] = { @@ -39,7 +39,7 @@ lcd.drawSprite(_xpos,_ypos,6,6,(int*)shape); } - int Bird::get_position(int y, Gamepad &pad) { + int Bird::get_position(int y, Gamepad &pad) { //get the vertical position of the bird if (pad.check_event(Gamepad::A_PRESSED) == true) { _y = y-14;