Basic game using accelerometer and LCD screen. You can move and dodge asteroids coming from both left and right. There is no scoring at the moment.

Dependencies:   C12832 FXOS8700Q mbed-rtos mbed

Revision:
2:9e0c826103d7
Parent:
1:c6734b909bf0
--- a/Asteroid.h	Tue Feb 16 22:25:42 2016 +0000
+++ b/Asteroid.h	Wed Feb 17 10:14:33 2016 +0000
@@ -9,14 +9,14 @@
 public:
     Asteroid();
     ~Asteroid();
-    int         getX() const;
-    int         getY() const;
-    bool        move(Player*);
+    int                 getX() const;
+    int                 getY() const;
+    bool                move(Player*);
 private:
-    int         inc;    // -1 / +1
-    int         x;      // 127=>0 / 0=>127
-    float       a;      // [A] * x + b
-    int         b;      // a * x + [B]
+    char                inc;    // -1 / +1
+    unsigned short int  x;      // 127 => 0 / 0 => 127
+    float               a;      // [A] * x + b
+    unsigned short int  b;      // a * x + [B]
 };
 
 #endif /* _ASTEROID_H_ */
\ No newline at end of file