![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
life/life.h
- Committer:
- Neowless
- Date:
- 2020-05-15
- Revision:
- 4:c7dc43515215
- Parent:
- 3:31ff7b3e2005
File content as of revision 4:c7dc43515215:
/** My Life Class * @Note the number of lives and draw the lives icon * @author Huo Yuheng * @date May, 2020 */ class #ifndef LIFE_H #define LIFE_H #include "Bitmap.h" #include "N5110.h" #include "Gamepad.h" class life{ public: void init(); /** decrease the lives */ void update(); /** show the remail lives on the display */ void display(N5110 &lcd); int liferest(); private: /**number of lives*/ int lives; /** bitmap of lives */ int icon[56]; }; #endif