Race around the city collecting the flags while avoiding those that stand in the way of your mission. Make no mistake you will need to be quick to outwit your opponents, they are smart and will try to box you in. I wrote this game to prove that writing a game with scrolling scenery is possible even with the limited 6kB of RAM available. I had to compromise sound effects for features, I wanted multiple opponents, I wanted to be able to drop smoke bombs to trap the opponents but all this required memory so the sound effects had to take a back seat.

Dependencies:   mbed

Committer:
taylorza
Date:
Sun Feb 01 00:43:25 2015 +0000
Revision:
1:1b8125937f28
Parent:
0:d85c449aca6d
Minor updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylorza 0:d85c449aca6d 1 #ifndef __IMAGEFRAME_H__
taylorza 0:d85c449aca6d 2 #define __IMAGEFRAME_H__
taylorza 0:d85c449aca6d 3
taylorza 0:d85c449aca6d 4 class ImageFrame
taylorza 0:d85c449aca6d 5 {
taylorza 0:d85c449aca6d 6 public:
taylorza 0:d85c449aca6d 7 ImageFrame(const Bitmap2bpp &bmp, uint8_t x, uint8_t y, uint8_t width, uint8_t height) :
taylorza 0:d85c449aca6d 8 _bmp(bmp),
taylorza 0:d85c449aca6d 9 _x(x),
taylorza 0:d85c449aca6d 10 _y(y),
taylorza 0:d85c449aca6d 11 _width(width),
taylorza 0:d85c449aca6d 12 _height(height)
taylorza 0:d85c449aca6d 13 {
taylorza 0:d85c449aca6d 14 }
taylorza 0:d85c449aca6d 15
taylorza 0:d85c449aca6d 16 inline const Bitmap2bpp& getBitmap() const { return _bmp; };
taylorza 0:d85c449aca6d 17 inline uint8_t getX() const { return _x; }
taylorza 0:d85c449aca6d 18 inline uint8_t getY() const { return _y; }
taylorza 0:d85c449aca6d 19 inline uint8_t getWidth() const { return _width; }
taylorza 0:d85c449aca6d 20 inline uint8_t getHeight() const { return _height; }
taylorza 0:d85c449aca6d 21
taylorza 0:d85c449aca6d 22 private:
taylorza 0:d85c449aca6d 23 const Bitmap2bpp &_bmp;
taylorza 0:d85c449aca6d 24 uint8_t _x;
taylorza 0:d85c449aca6d 25 uint8_t _y;
taylorza 0:d85c449aca6d 26 uint8_t _width;
taylorza 0:d85c449aca6d 27 uint8_t _height;
taylorza 0:d85c449aca6d 28
taylorza 0:d85c449aca6d 29 };
taylorza 0:d85c449aca6d 30
taylorza 0:d85c449aca6d 31 #endif //__IMAGEFRAME_H__
taylorza 0:d85c449aca6d 32