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
Player.h
- Committer:
- co838_gtvl2
- Date:
- 2016-02-17
- Revision:
- 2:9e0c826103d7
- Parent:
- 0:9ec880239b3c
File content as of revision 2:9e0c826103d7:
#ifndef _PLAYER_H_ # define _PLAYER_H_ # include "main.h" class Player { public: Player(); bool move(const int&, const int&); bool die(); int getX() const; int getY() const; bool isAlive() const; private: float x; float y; bool alive; }; #endif /* _PLAYER_H_ */