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

Committer:
co838_gtvl2
Date:
Wed Feb 17 10:14:33 2016 +0000
Revision:
2:9e0c826103d7
Parent:
0:9ec880239b3c
Unrealisable because memory in cpp isn't that good  :(

Who changed what in which revision?

UserRevisionLine numberNew contents of line
co838_gtvl2 0:9ec880239b3c 1 #ifndef _PLAYER_H_
co838_gtvl2 0:9ec880239b3c 2 # define _PLAYER_H_
co838_gtvl2 0:9ec880239b3c 3
co838_gtvl2 0:9ec880239b3c 4 # include "main.h"
co838_gtvl2 0:9ec880239b3c 5
co838_gtvl2 0:9ec880239b3c 6 class Player
co838_gtvl2 0:9ec880239b3c 7 {
co838_gtvl2 0:9ec880239b3c 8 public:
co838_gtvl2 0:9ec880239b3c 9 Player();
co838_gtvl2 0:9ec880239b3c 10 bool move(const int&, const int&);
co838_gtvl2 0:9ec880239b3c 11 bool die();
co838_gtvl2 0:9ec880239b3c 12 int getX() const;
co838_gtvl2 0:9ec880239b3c 13 int getY() const;
co838_gtvl2 0:9ec880239b3c 14 bool isAlive() const;
co838_gtvl2 0:9ec880239b3c 15 private:
co838_gtvl2 0:9ec880239b3c 16 float x;
co838_gtvl2 0:9ec880239b3c 17 float y;
co838_gtvl2 0:9ec880239b3c 18 bool alive;
co838_gtvl2 0:9ec880239b3c 19 };
co838_gtvl2 0:9ec880239b3c 20
co838_gtvl2 0:9ec880239b3c 21 #endif /* _PLAYER_H_ */