Platform game written for the GHI/OutrageousCircuits RETRO game device. Navigate the caves collecting all the pickups and avoiding the creatures and haunted mine carts that patrol the caves. Oh and remember to watch out for the poisonous plants... This game demonstrates the ability to have multiple animated sprites where the sprites can overlap the background environment. See how the player moves past the fence and climbs the wall in the 3rd screen.

Dependencies:   mbed

Committer:
taylorza
Date:
Mon Feb 16 03:46:57 2015 +0000
Revision:
16:f9227904afc4
Parent:
9:34008d8b1cdf
Added a 4th game screen

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylorza 9:34008d8b1cdf 1 #ifndef __GAMEINPUT_H__
taylorza 9:34008d8b1cdf 2 #define __GAMEINPUT_H__
taylorza 9:34008d8b1cdf 3
taylorza 9:34008d8b1cdf 4 class GameInput
taylorza 9:34008d8b1cdf 5 {
taylorza 9:34008d8b1cdf 6 private:
taylorza 9:34008d8b1cdf 7 static DigitalIn _up;
taylorza 9:34008d8b1cdf 8 static DigitalIn _down;
taylorza 9:34008d8b1cdf 9 static DigitalIn _left;
taylorza 9:34008d8b1cdf 10 static DigitalIn _right;
taylorza 9:34008d8b1cdf 11 static DigitalIn _square;
taylorza 9:34008d8b1cdf 12 static DigitalIn _circle;
taylorza 9:34008d8b1cdf 13
taylorza 9:34008d8b1cdf 14 public:
taylorza 9:34008d8b1cdf 15 static inline bool isUpPressed() { return !_up; }
taylorza 9:34008d8b1cdf 16 static inline bool isDownPressed() { return !_down; }
taylorza 9:34008d8b1cdf 17 static inline bool isLeftPressed() { return !_left; }
taylorza 9:34008d8b1cdf 18 static inline bool isRightPressed() { return !_right; }
taylorza 9:34008d8b1cdf 19 static inline bool isSquarePressed() { return !_square; }
taylorza 9:34008d8b1cdf 20 static inline bool isCirclePressed() { return !_circle; }
taylorza 9:34008d8b1cdf 21 };
taylorza 9:34008d8b1cdf 22
taylorza 9:34008d8b1cdf 23 #endif //__GAMEINPUT_H__