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.
RetroGameEngine/Point.h@9:34008d8b1cdf, 2015-01-11 (annotated)
- Committer:
- taylorza
- Date:
- Sun Jan 11 02:53:03 2015 +0000
- Revision:
- 9:34008d8b1cdf
- Child:
- 11:9ae9a88a1da8
Final version before optimizations
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
taylorza | 9:34008d8b1cdf | 1 | #ifndef __POINT_H_ |
taylorza | 9:34008d8b1cdf | 2 | #define __POINT_H__ |
taylorza | 9:34008d8b1cdf | 3 | struct Point |
taylorza | 9:34008d8b1cdf | 4 | { |
taylorza | 9:34008d8b1cdf | 5 | uint8_t X; |
taylorza | 9:34008d8b1cdf | 6 | uint8_t Y; |
taylorza | 9:34008d8b1cdf | 7 | |
taylorza | 9:34008d8b1cdf | 8 | Point() : |
taylorza | 9:34008d8b1cdf | 9 | X(0), |
taylorza | 9:34008d8b1cdf | 10 | Y(0) |
taylorza | 9:34008d8b1cdf | 11 | { |
taylorza | 9:34008d8b1cdf | 12 | } |
taylorza | 9:34008d8b1cdf | 13 | |
taylorza | 9:34008d8b1cdf | 14 | Point(uint8_t x, uint8_t y) : |
taylorza | 9:34008d8b1cdf | 15 | X(x), |
taylorza | 9:34008d8b1cdf | 16 | Y(y) |
taylorza | 9:34008d8b1cdf | 17 | { |
taylorza | 9:34008d8b1cdf | 18 | } |
taylorza | 9:34008d8b1cdf | 19 | |
taylorza | 9:34008d8b1cdf | 20 | inline bool operator==(const Point &rhs) |
taylorza | 9:34008d8b1cdf | 21 | { |
taylorza | 9:34008d8b1cdf | 22 | return X == rhs.X && Y == rhs.Y; |
taylorza | 9:34008d8b1cdf | 23 | } |
taylorza | 9:34008d8b1cdf | 24 | |
taylorza | 9:34008d8b1cdf | 25 | inline bool operator!=(const Point &rhs) |
taylorza | 9:34008d8b1cdf | 26 | { |
taylorza | 9:34008d8b1cdf | 27 | return !(*this == rhs); |
taylorza | 9:34008d8b1cdf | 28 | } |
taylorza | 9:34008d8b1cdf | 29 | }; |
taylorza | 9:34008d8b1cdf | 30 | #endif //__POINT_H__ |