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/ImageFrame.h
- Committer:
- taylorza
- Date:
- 2015-01-11
- Revision:
- 10:782e4e9c6b47
- Parent:
- 9:34008d8b1cdf
File content as of revision 10:782e4e9c6b47:
#ifndef __IMAGEFRAME_H__ #define __IMAGEFRAME_H__ class ImageFrame { public: ImageFrame(const uint8_t *pSheet, uint8_t x, uint8_t y) : _stride((*((uint16_t*)pSheet)) >> 3), _pStart((pSheet + 4) + ((y * _stride) + (x >> 3))) { } inline uint8_t *getBits(int row) const { return (uint8_t*)(_pStart + (row * _stride)); } private: uint8_t _stride; const uint8_t *_pStart; }; #endif //__IMAGEFRAME_H__