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

LCD_ST7735/Color565.cpp

Committer:
taylorza
Date:
2015-02-01
Revision:
1:1b8125937f28
Parent:
0:d85c449aca6d

File content as of revision 1:1b8125937f28:

///////////////////////////////////////////////////////////////////////////////
// LCD_ST7735 - Driver for ST7735 LCD display controller
// Author: Chris Taylor (taylorza)
#include "mbed.h"
#include "Color565.h"

const uint16_t Color565::White = Color565::fromRGB(0xff, 0xff, 0xff);
const uint16_t Color565::Silver = Color565::fromRGB(0xc0, 0xc0, 0xc0);
const uint16_t Color565::Gray = Color565::fromRGB(0x80, 0x80, 0x80);
const uint16_t Color565::Black = Color565::fromRGB(0x00, 0x00, 0x00);
const uint16_t Color565::Red = Color565::fromRGB(0xff, 0x00, 0x00);
const uint16_t Color565::Maroon = Color565::fromRGB(0x80, 0x00, 0x00);
const uint16_t Color565::Yellow = Color565::fromRGB(0xff, 0xff, 0x00);
const uint16_t Color565::Olive = Color565::fromRGB(0x80, 0x80, 0x00);
const uint16_t Color565::Lime = Color565::fromRGB(0x00, 0xff, 0x00);
const uint16_t Color565::Green = Color565::fromRGB(0x00, 0x80, 0x00);
const uint16_t Color565::Aqua = Color565::fromRGB(0x00, 0xff, 0xff);
const uint16_t Color565::Teal = Color565::fromRGB(0x00, 0x80, 0x80);
const uint16_t Color565::Blue = Color565::fromRGB(0x00, 0x00, 0xff);
const uint16_t Color565::Navy = Color565::fromRGB(0x00, 0x00, 0x80);
const uint16_t Color565::Fuchsia = Color565::fromRGB(0xff, 0x00, 0xff);
const uint16_t Color565::Purple = Color565::fromRGB(0x80, 0x00, 0x80);