test

Dependencies:   mbed FXOS8700CQ

Revision:
3:31ff7b3e2005
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/life/life.h	Fri May 15 20:32:27 2020 +0000
@@ -0,0 +1,32 @@
+
+/** 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
+