Implement basic functions

Dependencies:   mbed N5110

Committer:
Wuuu
Date:
Fri May 03 13:05:24 2019 +0000
Revision:
0:64bd9f996099
Flappy Bird, which with header programme

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wuuu 0:64bd9f996099 1 #ifndef BIRD_H
Wuuu 0:64bd9f996099 2 #define BIRD_H
Wuuu 0:64bd9f996099 3
Wuuu 0:64bd9f996099 4 #include "mbed.h"
Wuuu 0:64bd9f996099 5 #include "N5110.h"
Wuuu 0:64bd9f996099 6 #include "Gamepad.h"
Wuuu 0:64bd9f996099 7 #include "Bitmap.h"
Wuuu 0:64bd9f996099 8
Wuuu 0:64bd9f996099 9 class Bird
Wuuu 0:64bd9f996099 10 {
Wuuu 0:64bd9f996099 11 public:
Wuuu 0:64bd9f996099 12
Wuuu 0:64bd9f996099 13 Bird();
Wuuu 0:64bd9f996099 14 ~Bird();
Wuuu 0:64bd9f996099 15 void init();
Wuuu 0:64bd9f996099 16 int draw(N5110 &lcd,Gamepad &pad);
Wuuu 0:64bd9f996099 17
Wuuu 0:64bd9f996099 18 private:
Wuuu 0:64bd9f996099 19
Wuuu 0:64bd9f996099 20 int _h;
Wuuu 0:64bd9f996099 21 };
Wuuu 0:64bd9f996099 22
Wuuu 0:64bd9f996099 23 #endif