Li Ruofan 201199450

Dependencies:   mbed Gamepad Joystick

Revision:
8:b4a2954dd74f
Parent:
6:cbd9e1f26a10
--- a/UFO/UFO.h	Fri May 15 22:23:22 2020 +0000
+++ b/UFO/UFO.h	Sat May 16 17:26:10 2020 +0000
@@ -24,7 +24,7 @@
       @param the columns of UFO image (int)
       @param the rows of UFO image (int) 
      */
-    void init(int x,int y,int _width,int _height);
+    void init(int _sizeX,int _sizeY);
     
     /* Get the position of UFO in lcd
       @return the position of UFO in lcd
@@ -39,7 +39,7 @@
      * @param lcd (N5110)
      * @param the value difficulty mode (int)
      */
-    void draw(N5110 &lcd,int mode);
+    void draw(N5110 &lcd);
     
     /** Set the UFO speed
      * @param the value of UFO speed
@@ -64,8 +64,8 @@
 private:
     int _x;
     int _y;
-    int _width;
-    int _height;
+    int _sizeX;
+    int _sizeY;
     int _speed;
     int _blood;