After decimating the enemy forces that have attacked your ship, you are charged with taking out as many of the remaining enemy fighters as possible. 3d space fighter game was initially written while I was testing some 3d routines I was implementing for a flight simulator, but my daughter started playing it and seemed to enjoy it so I added a few sound effects, explosions etc. and so this little game was born.
GameInput.h
- Committer:
- taylorza
- Date:
- 2015-02-08
- Revision:
- 4:b857db213f10
- Parent:
- 0:01829868570e
File content as of revision 4:b857db213f10:
#ifndef __GAMEINPUT_H__ #define __GAMEINPUT_H__ class GameInput { private: static DigitalIn _up; static DigitalIn _down; static DigitalIn _left; static DigitalIn _right; static DigitalIn _square; static DigitalIn _circle; public: static inline bool isUpPressed() { return !_up; } static inline bool isDownPressed() { return !_down; } static inline bool isLeftPressed() { return !_left; } static inline bool isRightPressed() { return !_right; } static inline bool isSquarePressed() { return !_square; } static inline bool isCirclePressed() { return !_circle; } }; #endif //__GAMEINPUT_H__