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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Point.h Source File

Point.h

00001 #ifndef __POINT_H__
00002 #define __POINT_H__
00003 struct Point
00004 {
00005     uint8_t X;
00006     uint8_t Y;
00007 
00008     Point() :
00009         X(0),
00010         Y(0)
00011     {
00012     }
00013     
00014     Point(uint8_t x, uint8_t y) :
00015         X(x),
00016         Y(y)
00017     {        
00018     }
00019     
00020     inline bool operator==(const Point &rhs)
00021     {
00022         return X == rhs.X && Y == rhs.Y;
00023     }
00024     
00025     inline bool operator!=(const Point &rhs)
00026     {
00027         return !(*this == rhs);
00028     }
00029 };
00030 #endif //__POINT_H__