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

RetroGameEngine/GameInput.h

Committer:
taylorza
Date:
2015-02-16
Revision:
16:f9227904afc4
Parent:
9:34008d8b1cdf

File content as of revision 16:f9227904afc4:

#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__