After decimating the enemy forces that have attacked your ship, you are charged with taking out as many of the remaining enemy fighters as possible. 3d space fighter game was initially written while I was testing some 3d routines I was implementing for a flight simulator, but my daughter started playing it and seemed to enjoy it so I added a few sound effects, explosions etc. and so this little game was born.

Dependencies:   mbed

LCD_ST7735/Bitmap1bpp.h

Committer:
taylorza
Date:
2015-02-08
Revision:
4:b857db213f10
Parent:
3:421ecc846d15

File content as of revision 4:b857db213f10:

#ifndef __BITMAP1BPP_H__
#define __BITMAP1BPP_H__

class Bitmap1bpp
{
    public:
        Bitmap1bpp(uint16_t width, uint16_t height);
        ~Bitmap1bpp();
        
        inline uint16_t getWidth() { return _width; }
        inline uint16_t getHeight() { return _height; }
        inline uint16_t getStride() { return _stride; }
        
        inline uint8_t *getBitmapData() { return _pBitmapData; }
        
        void clear();
        
        void setPixel(int16_t x, int16_t y, uint16_t color);
        
    private:
        uint16_t    _width;
        uint16_t    _height;
        uint16_t    _stride;
        uint8_t     *_pBitmapData;
};

#endif //__BITMAP1BPP_H_