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:
11:9ae9a88a1da8
Added a 4th game screen

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylorza 0:2ee0812e2615 1 #ifndef __BITMAP4BPP_H__
taylorza 0:2ee0812e2615 2 #define __BITMAP4BPP_H__
taylorza 0:2ee0812e2615 3
taylorza 0:2ee0812e2615 4 class Bitmap4bpp
taylorza 0:2ee0812e2615 5 {
taylorza 0:2ee0812e2615 6 public:
taylorza 0:2ee0812e2615 7 Bitmap4bpp(uint16_t width, uint16_t height);
taylorza 7:2fd875c1d9b1 8 ~Bitmap4bpp();
taylorza 0:2ee0812e2615 9
taylorza 0:2ee0812e2615 10 inline uint16_t getWidth() { return _width; }
taylorza 11:9ae9a88a1da8 11 inline uint16_t getHeight() { return _height; }
taylorza 0:2ee0812e2615 12 inline uint16_t getStride() { return _stride; }
taylorza 0:2ee0812e2615 13
taylorza 7:2fd875c1d9b1 14 inline uint8_t *getBitmapData() { return _pBitmapData; }
taylorza 0:2ee0812e2615 15
taylorza 0:2ee0812e2615 16 void clear();
taylorza 0:2ee0812e2615 17 private:
taylorza 0:2ee0812e2615 18 uint16_t _width;
taylorza 0:2ee0812e2615 19 uint16_t _height;
taylorza 0:2ee0812e2615 20 uint16_t _stride;
taylorza 0:2ee0812e2615 21 uint8_t *_pBitmapData;
taylorza 0:2ee0812e2615 22 };
taylorza 0:2ee0812e2615 23
taylorza 0:2ee0812e2615 24 #endif //__BITMAP4BPP_H__