Doxyjen of the Bird.h

Dependencies:   mbed N5110

Committer:
Wuuu
Date:
Sun May 05 16:27:50 2019 +0000
Revision:
0:0aea7b9ba421
Doxyjen of the Bird.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wuuu 0:0aea7b9ba421 1 #include "Bird.h"
Wuuu 0:0aea7b9ba421 2
Wuuu 0:0aea7b9ba421 3 Bird::Bird()
Wuuu 0:0aea7b9ba421 4 {
Wuuu 0:0aea7b9ba421 5
Wuuu 0:0aea7b9ba421 6 }
Wuuu 0:0aea7b9ba421 7
Wuuu 0:0aea7b9ba421 8 Bird::~Bird()
Wuuu 0:0aea7b9ba421 9 {
Wuuu 0:0aea7b9ba421 10
Wuuu 0:0aea7b9ba421 11 }
Wuuu 0:0aea7b9ba421 12
Wuuu 0:0aea7b9ba421 13 void Bird::init()
Wuuu 0:0aea7b9ba421 14 {
Wuuu 0:0aea7b9ba421 15 _h = 16;
Wuuu 0:0aea7b9ba421 16 }
Wuuu 0:0aea7b9ba421 17
Wuuu 0:0aea7b9ba421 18 int Bird::draw(N5110 &lcd,Gamepad &pad)
Wuuu 0:0aea7b9ba421 19 {
Wuuu 0:0aea7b9ba421 20 int sprite_data1[] = {
Wuuu 0:0aea7b9ba421 21 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 22 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 23 0,0,0,1,0,0,0,0,
Wuuu 0:0aea7b9ba421 24 0,0,0,1,1,0,0,0,
Wuuu 0:0aea7b9ba421 25 0,0,0,1,1,1,0,0,
Wuuu 0:0aea7b9ba421 26 0,0,0,1,1,1,0,0,
Wuuu 0:0aea7b9ba421 27 1,1,1,1,1,1,1,1,
Wuuu 0:0aea7b9ba421 28 1,1,1,1,1,1,1,0,
Wuuu 0:0aea7b9ba421 29 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 30 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 31 };
Wuuu 0:0aea7b9ba421 32 int sprite_data2[] = {
Wuuu 0:0aea7b9ba421 33 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 34 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 35 1,1,1,1,1,1,1,0,
Wuuu 0:0aea7b9ba421 36 1,1,1,1,1,1,1,1,
Wuuu 0:0aea7b9ba421 37 0,0,0,1,1,1,0,0,
Wuuu 0:0aea7b9ba421 38 0,0,0,1,1,1,0,0,
Wuuu 0:0aea7b9ba421 39 0,0,0,1,1,0,0,0,
Wuuu 0:0aea7b9ba421 40 0,0,0,1,0,0,0,0,
Wuuu 0:0aea7b9ba421 41 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 42 0,0,0,0,0,0,0,0,
Wuuu 0:0aea7b9ba421 43 };
Wuuu 0:0aea7b9ba421 44 if(pad.check_event(Gamepad::A_PRESSED) == true){
Wuuu 0:0aea7b9ba421 45 _h = _h - 7;
Wuuu 0:0aea7b9ba421 46 Bitmap sprite(sprite_data1, 10, 8);
Wuuu 0:0aea7b9ba421 47 sprite.render(lcd,1,_h);
Wuuu 0:0aea7b9ba421 48 }else{
Wuuu 0:0aea7b9ba421 49 _h = _h + 3;
Wuuu 0:0aea7b9ba421 50 Bitmap sprite(sprite_data2, 10, 8);
Wuuu 0:0aea7b9ba421 51 sprite.render(lcd,1,_h);
Wuuu 0:0aea7b9ba421 52 }
Wuuu 0:0aea7b9ba421 53 return _h;
Wuuu 0:0aea7b9ba421 54 }