Race around the city collecting the flags while avoiding those that stand in the way of your mission. Make no mistake you will need to be quick to outwit your opponents, they are smart and will try to box you in. I wrote this game to prove that writing a game with scrolling scenery is possible even with the limited 6kB of RAM available. I had to compromise sound effects for features, I wanted multiple opponents, I wanted to be able to drop smoke bombs to trap the opponents but all this required memory so the sound effects had to take a back seat.

Dependencies:   mbed

Revision:
0:d85c449aca6d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GameEngine/GameInput.h	Wed Jan 28 03:26:07 2015 +0000
@@ -0,0 +1,23 @@
+#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__
\ No newline at end of file