An exciting survival game with random terrain by Jonne
Dependencies: PokittoLib
Fork of AnimationTest by
Diff: pixonia.cpp
- Revision:
- 4:1b2348ec80ad
- Child:
- 8:809b1982b4ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pixonia.cpp Thu Oct 19 09:03:25 2017 +0000 @@ -0,0 +1,62 @@ + + +/* + * BMP image as 4bpp (16 colour index) data + */ + +#include <stdint.h> +#include "Pokulous.h" + +const uint16_t pixonia_pal[] = { +22530,12922,10764,9284,13670,20137,65312,41728,33280,65535,46486,38066,29614,0,63488,63519 +}; + +const uint8_t pixonia[] = { +110,88, +17,221,34,34,34,34,34,34,34,34,17,34,17,17,170,34,34,221,34,34,34,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,17,221,34,34,34,34,34,34,34,34,17,34,17,17,170,34,34,221,34,34,34,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +17,34,170,17,34,34,34,221,34,34,34,34,34,34,34,17,17,34,17,17,17,34,34,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,17,34,170,17,34,34,34,221,34,41,153,153,34,34,34,17,17,34,17,17,17,34,34,221,221,221,221,221,221,221,217,153,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +17,17,17,34,17,17,34,34,170,153,153,153,154,17,17,17,17,17,34,34,221,34,17,34,221,221,221,221,221,221,153,153,153,157,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,17,17,17,34,17,17,34,34,169,153,153,153,153,17,17,17,17,17,34,34,221,34,17,34,221,221,221,221,221,217,153,153,153,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +34,34,34,221,170,17,17,221,41,153,68,73,153,17,221,170,17,17,17,17,34,34,34,17,34,34,34,221,221,217,153,68,73,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,34,34,34,221,170,17,17,221,41,153,68,73,153,17,221,170,17,17,17,17,34,34,34,17,34,34,34,221,221,217,153,68,73,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +34,34,17,34,17,17,170,34,41,153,68,73,153,34,34,34,17,17,17,34,34,17,17,34,17,221,34,34,34,217,153,68,73,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,34,34,17,41,153,153,153,153,153,153,153,153,153,153,153,41,153,153,25,153,153,153,153,153,25,153,153,153,153,153,153,153,153,153,153,153,153,153,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +34,34,34,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,157,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,34,34,41,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, +170,34,25,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,68,68,68,68,73,153,68,73,153,68,68,68,68,73,153,221,221,221,221,221,221,221,221,187,204,187,221,221,221,221,170,34,25,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,68,68,68,68,73,153,68,73,153,68,68,68,68,73,153,221,221,221,221,221,221,221,221,187,204,187,221,221,221,221, +34,34,41,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,68,68,68,68,73,153,68,73,153,68,68,68,68,73,153,221,221,221,221,221,221,221,221,34,221,204,119,136,136,0,34,34,41,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,153,153,153,68,73,153,221,221,221,221,221,221,221,221,34,221,204,119,136,136,0, +34,221,41,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,153,153,153,68,73,153,221,221,221,221,221,221,119,136,34,34,136,136,0,0,136,34,221,41,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,153,153,153,68,73,153,221,221,221,221,221,221,119,136,34,34,136,136,0,0,136, +17,34,25,153,68,73,153,68,73,153,68,73,153,153,148,68,153,153,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,221,221,221,221,136,136,136,136,136,136,0,0,119,136,119,17,34,25,153,68,73,153,68,73,153,68,73,153,153,148,68,153,153,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,221,221,221,221,136,136,136,136,136,136,0,0,119,136,119, +17,17,41,153,68,73,153,68,73,153,68,73,153,153,148,68,153,153,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,221,221,136,136,136,136,136,119,0,0,119,136,136,119,0,17,17,41,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,221,221,136,136,136,136,136,119,0,0,119,136,136,119,0, +17,17,25,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,34,34,34,0,0,0,221,0,119,136,136,119,136,136,119,17,17,25,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,68,73,153,34,34,34,0,0,0,221,0,119,136,136,119,136,136,119, +17,17,25,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,17,221,34,136,0,0,136,136,0,119,136,119,119,0,119,17,17,25,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,17,221,34,136,0,0,136,136,0,119,136,119,119,0,119, +170,34,25,153,68,68,68,68,73,153,68,73,153,68,73,153,68,73,153,68,68,68,68,73,153,221,73,153,68,73,153,68,73,153,68,68,68,68,73,153,17,34,170,0,136,0,0,0,0,136,119,136,136,119,0,170,34,25,153,68,73,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,221,153,153,153,153,153,153,153,153,153,153,153,153,153,153,17,34,170,0,136,0,0,0,0,136,119,136,136,119,0, +221,34,25,153,68,73,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,221,221,221,221,153,153,153,153,153,153,153,153,153,153,153,153,146,17,17,17,119,0,136,136,0,0,0,119,0,119,136,119,221,34,25,153,68,73,153,153,153,25,153,153,25,153,153,41,153,153,25,153,153,153,153,221,221,221,221,41,153,153,25,153,153,41,153,153,153,153,153,34,17,17,17,119,0,136,136,0,0,0,119,0,119,136,119, +34,34,41,153,68,73,153,34,34,34,34,221,170,17,17,221,34,34,34,34,17,17,221,170,221,51,221,17,34,34,34,17,34,34,34,34,17,17,17,34,34,34,34,136,0,0,0,136,136,119,119,119,136,221,221,34,34,41,153,68,73,153,34,34,34,34,221,170,17,17,221,34,34,34,34,17,17,221,170,221,51,221,17,34,34,34,17,34,34,34,34,17,17,17,34,34,34,34,136,0,0,0,136,136,119,119,119,136,221,221, +17,221,41,153,68,73,153,34,34,34,17,34,17,17,170,34,34,221,34,34,34,34,221,68,51,51,51,221,34,17,17,34,17,221,34,34,34,34,34,34,34,34,17,0,0,221,221,0,0,0,136,221,221,221,221,17,221,41,153,153,153,153,34,34,34,17,34,17,17,170,34,34,221,34,34,34,34,221,68,51,51,51,221,34,17,17,34,17,221,34,34,34,34,34,34,34,34,17,0,0,221,221,0,0,0,136,221,221,221,221, +17,34,170,153,153,153,146,221,34,34,34,34,34,34,34,17,17,34,17,17,17,34,51,221,51,221,221,51,221,34,34,17,17,34,170,17,34,34,34,221,34,34,34,119,0,221,221,0,0,221,0,136,136,221,221,17,34,170,25,153,153,34,221,34,34,34,34,34,34,34,17,17,34,17,17,17,34,51,221,51,221,221,51,221,34,34,17,17,34,170,17,34,34,34,221,34,34,34,119,0,221,221,0,0,221,0,136,136,221,221, +17,17,17,34,17,17,34,34,170,34,17,17,170,17,17,17,17,17,34,34,221,221,51,51,221,221,221,221,221,34,17,34,17,17,17,34,17,17,34,34,170,34,17,136,0,221,221,136,221,221,221,0,0,0,221,17,17,17,34,17,17,34,34,170,34,17,17,170,17,17,17,17,17,34,34,221,221,51,51,221,221,221,221,221,34,17,34,17,17,17,34,17,17,34,34,170,34,17,136,0,221,221,136,221,221,221,0,0,0,221, +34,34,34,221,170,17,17,221,34,34,34,34,17,17,221,170,17,17,17,17,34,221,68,51,221,51,221,51,221,17,17,34,34,34,34,221,170,17,17,221,34,51,51,0,0,221,221,0,221,51,221,221,221,119,119,34,34,34,221,170,17,17,221,34,34,34,34,17,17,221,170,17,17,17,17,34,221,68,51,221,51,221,51,221,17,17,34,34,34,34,221,170,17,17,221,34,51,51,0,0,221,221,0,221,51,221,221,221,119,119, +34,34,17,34,17,17,170,34,34,221,34,34,34,34,34,34,17,17,17,34,34,51,221,68,51,51,51,221,51,221,34,34,34,34,17,34,17,17,170,68,68,68,68,68,68,221,221,68,51,51,51,221,119,0,0,34,34,17,34,17,17,170,34,34,221,34,34,34,34,34,34,17,17,17,34,34,51,221,68,51,51,51,221,51,221,34,34,34,34,17,34,17,17,170,68,68,68,68,68,68,221,221,68,51,51,51,221,119,0,0, +34,34,34,34,34,34,34,17,17,34,17,17,17,34,34,17,170,51,51,17,221,221,51,221,51,221,221,51,221,68,221,221,34,51,51,34,34,68,51,68,68,68,68,68,68,51,51,221,51,221,221,51,0,34,34,34,34,34,34,34,34,34,17,17,34,17,17,17,34,34,17,170,51,51,17,221,221,51,221,51,221,221,51,221,68,221,221,34,51,51,34,34,68,51,68,68,68,68,68,68,51,51,221,51,221,221,51,0,34,34, +170,51,51,17,170,17,17,17,17,17,34,34,221,34,17,68,68,68,68,221,221,221,51,51,51,51,51,221,221,221,51,68,68,68,68,68,68,68,68,68,68,68,68,68,68,221,51,51,51,51,51,221,221,34,17,170,51,51,17,170,17,17,17,17,17,34,34,221,34,17,68,68,68,68,221,221,221,51,51,51,51,51,221,221,221,51,68,68,68,68,68,68,68,68,68,68,68,68,68,68,221,51,51,51,51,51,221,221,34,17, +119,119,119,51,68,17,221,170,17,221,51,51,34,68,51,68,68,68,68,68,221,221,68,51,221,51,51,51,221,221,51,68,68,68,68,68,68,51,68,68,68,51,51,187,68,221,68,51,221,51,51,51,221,51,68,119,119,119,51,68,17,221,170,17,221,51,51,34,68,51,68,68,68,68,68,221,221,68,51,221,51,51,51,221,221,51,68,68,68,68,68,68,51,68,68,68,51,51,187,68,221,68,51,221,51,51,51,221,51,68, +34,119,119,136,119,51,68,68,221,221,221,51,51,51,68,68,68,68,68,68,68,51,221,221,51,51,68,221,51,221,68,68,68,68,68,68,68,68,68,68,51,204,204,51,187,51,221,221,51,51,68,221,51,221,68,34,119,119,136,119,51,68,68,221,221,221,51,51,51,68,68,68,68,68,68,68,51,221,221,51,51,68,221,51,221,68,68,68,68,68,68,68,68,68,68,51,204,204,51,187,51,221,221,51,51,68,221,51,221,68, +136,119,136,119,119,68,51,51,221,51,221,51,51,51,51,51,68,51,51,68,68,221,51,51,221,51,221,51,221,68,221,0,0,0,51,68,68,68,51,204,34,34,204,204,204,221,51,51,221,221,221,51,221,68,221,136,119,136,119,119,68,51,51,221,51,221,51,51,51,51,51,68,51,51,68,68,221,51,51,221,51,221,51,221,68,221,0,0,0,51,68,68,68,51,204,34,34,204,204,204,221,51,51,221,221,221,51,221,68,221, +119,34,119,68,51,51,221,68,51,51,51,221,51,51,51,51,51,34,51,221,221,51,221,51,221,51,51,221,51,221,0,0,0,0,0,68,68,187,187,187,204,221,204,221,221,51,221,51,221,221,221,221,51,221,51,119,34,119,68,51,51,221,68,51,51,51,221,51,51,51,51,51,34,51,221,221,51,221,51,221,51,51,221,51,221,0,0,0,0,0,68,68,187,187,187,204,221,204,221,221,51,221,51,221,221,221,221,51,221,51, +34,17,51,51,51,51,51,221,51,221,221,51,51,34,51,51,34,221,51,51,221,51,51,51,51,221,51,221,51,0,0,0,119,119,119,0,68,51,68,34,34,204,34,187,221,51,51,51,221,51,221,221,51,221,51,34,17,51,51,51,51,51,221,51,221,221,51,51,34,51,51,34,221,51,51,221,51,51,51,51,221,51,221,51,0,0,0,119,119,119,0,68,51,68,34,34,204,34,187,221,51,51,51,221,51,221,221,51,221,51, +17,34,119,119,51,221,51,51,51,51,51,221,221,51,51,51,221,221,221,51,51,221,51,221,51,221,221,221,51,0,0,119,221,119,221,68,68,68,68,51,68,204,34,221,34,221,221,68,51,51,51,221,51,68,51,17,34,119,119,51,221,51,51,51,51,51,221,221,51,51,51,221,221,221,51,51,221,51,221,51,221,221,221,51,0,0,119,221,119,221,68,68,68,68,51,68,204,34,221,34,221,221,68,51,51,51,221,51,68,51, +34,51,51,119,119,221,68,51,221,51,51,51,221,51,34,51,221,51,221,51,34,119,221,0,221,0,221,0,221,119,119,136,119,136,119,68,68,68,68,68,68,51,51,51,68,68,51,221,51,221,221,51,221,68,136,34,51,51,119,119,221,68,51,221,51,51,51,221,51,34,51,221,51,221,51,34,119,221,0,221,0,221,0,221,119,119,136,119,136,119,68,68,68,68,68,68,51,51,51,68,68,51,221,51,221,221,51,221,68,136, +51,34,51,51,51,51,221,221,51,51,68,221,51,221,221,68,51,51,51,221,119,68,51,0,119,0,0,68,68,51,68,136,119,119,136,85,85,85,68,68,85,85,85,85,85,221,51,51,51,51,51,221,221,51,68,51,34,51,51,51,51,221,221,51,51,68,221,51,221,221,68,51,51,51,221,119,68,51,0,119,0,0,68,68,51,68,136,119,119,136,85,85,85,68,68,85,85,85,85,85,221,51,51,51,51,51,221,221,51,68, +34,51,51,51,51,221,51,51,221,51,221,51,221,68,51,221,51,221,221,51,51,68,68,68,119,221,0,68,68,68,34,17,34,119,0,119,85,85,85,85,85,85,85,85,85,221,68,51,221,51,51,51,221,68,68,34,51,51,51,51,221,51,51,221,51,221,51,221,68,51,221,51,221,221,51,51,68,68,68,119,221,0,68,68,68,34,17,34,119,0,119,85,85,85,85,85,85,85,85,85,221,68,51,221,51,51,51,221,68,68, +51,34,51,221,221,51,221,51,221,51,51,221,51,221,51,51,51,51,51,221,221,68,68,0,221,0,0,136,68,68,136,34,34,34,34,85,85,85,85,85,85,85,85,85,85,51,221,221,51,51,68,221,51,221,68,51,34,51,221,221,51,221,51,221,51,51,221,51,221,51,51,51,51,51,221,221,68,68,0,221,0,0,136,68,68,136,34,34,34,34,85,85,85,85,85,85,85,85,85,85,51,221,221,51,51,68,221,51,221,68, +51,51,51,51,221,51,51,51,51,221,51,221,51,221,68,51,221,51,51,51,221,68,68,68,68,221,68,68,85,85,85,34,119,34,34,34,85,51,85,85,85,85,85,85,85,221,51,51,221,51,221,51,221,68,221,51,51,51,51,221,51,51,51,51,221,51,221,51,221,68,51,221,51,51,51,221,68,68,68,68,221,68,68,85,85,85,34,119,34,34,34,85,51,85,85,85,85,85,85,85,221,51,51,221,51,221,51,221,68,221, +34,51,51,51,51,221,51,221,51,221,221,221,51,51,221,221,51,51,68,221,51,221,68,68,68,68,85,85,85,85,221,119,34,85,221,119,34,85,85,51,85,85,85,221,221,51,221,51,221,51,51,221,51,221,51,34,51,51,51,51,221,51,221,51,221,221,221,51,51,221,221,51,51,68,221,51,221,68,68,68,68,85,85,85,85,221,119,34,85,221,119,34,85,85,51,85,85,85,221,221,51,221,51,221,51,51,221,51,221,51, +51,221,51,34,51,119,221,0,221,0,221,0,221,221,51,51,221,51,221,51,221,68,221,51,68,51,51,187,85,85,119,221,85,85,85,221,85,85,85,85,85,51,85,85,221,51,51,51,51,221,51,221,51,221,119,51,221,51,34,51,119,221,0,221,0,221,0,221,221,51,51,221,51,221,51,221,68,221,51,68,51,51,187,85,85,119,221,85,85,85,221,85,85,85,85,85,51,85,85,221,51,51,51,51,221,51,221,51,221,119, +221,221,221,51,119,68,51,0,119,0,0,221,221,51,221,51,221,51,51,221,51,221,51,68,51,204,204,51,187,68,85,85,85,85,85,85,85,85,85,85,85,136,85,85,51,221,51,221,51,221,221,221,51,68,51,221,221,221,51,119,68,51,0,119,0,0,221,221,51,221,51,221,51,51,221,51,221,51,68,51,204,204,51,187,68,85,85,85,85,85,85,85,85,85,85,85,136,85,85,51,221,51,221,51,221,221,221,51,68,51, +221,51,221,68,51,68,68,68,119,221,0,68,221,51,51,51,51,221,51,221,51,68,51,204,34,34,204,204,204,51,68,85,85,85,85,85,85,85,51,119,119,51,51,119,119,119,221,0,221,0,221,0,221,68,136,221,51,221,68,51,68,68,68,119,221,0,68,221,51,51,51,51,221,51,221,51,68,51,204,34,34,204,204,204,51,68,85,85,85,85,85,85,85,51,119,119,51,51,119,119,119,221,0,221,0,221,0,221,68,136, +51,51,51,221,68,68,68,0,221,221,221,136,68,221,51,221,51,221,221,68,51,187,187,187,204,221,204,204,34,68,68,51,68,85,85,85,51,119,136,68,85,85,85,85,85,68,51,0,119,0,0,68,68,51,68,51,51,51,221,68,68,68,0,221,221,221,136,68,221,51,221,51,221,221,68,51,187,187,187,204,221,204,204,34,68,68,51,68,85,85,85,51,119,136,68,85,85,85,85,85,68,51,0,119,0,0,68,68,51,68, +51,221,221,51,68,51,68,68,221,51,221,68,68,68,221,0,221,0,51,51,51,187,187,34,34,204,34,187,187,204,68,51,68,68,68,68,85,85,85,85,85,85,85,85,85,51,85,68,119,221,0,68,68,68,68,51,221,221,51,68,51,68,68,221,51,221,68,68,68,221,0,221,0,51,51,51,187,187,34,34,204,34,187,187,204,68,51,68,68,68,68,85,85,85,85,85,85,85,85,85,51,85,68,119,221,0,68,68,68,68, +51,51,51,221,221,68,221,68,51,51,51,221,68,68,51,0,119,0,119,68,51,51,34,204,204,204,34,221,34,51,51,68,51,68,51,85,85,85,85,85,85,85,85,85,85,85,85,51,85,0,0,136,68,68,68,51,51,51,221,221,68,221,68,51,51,51,221,68,68,51,0,119,0,119,68,51,51,34,204,204,204,34,221,34,51,51,68,51,68,51,85,85,85,85,85,85,85,85,85,85,85,85,51,85,0,0,136,68,68,68, +221,51,51,51,221,68,51,221,51,221,221,51,51,68,68,68,119,51,51,119,136,51,51,51,51,204,34,51,68,68,51,51,68,51,68,51,85,85,85,85,85,85,85,85,85,85,85,85,85,51,68,68,68,68,68,221,51,51,51,221,68,51,221,51,221,221,51,51,68,68,68,119,51,51,119,136,51,51,51,51,204,34,51,68,68,51,51,68,51,68,51,85,85,85,85,85,85,85,85,85,85,85,85,85,51,68,68,68,68,68, +51,51,68,221,51,221,51,51,51,51,51,221,221,68,68,51,51,34,51,51,51,51,136,51,68,51,68,68,51,119,51,68,51,68,51,68,51,68,85,85,85,85,85,85,85,85,85,85,85,136,68,68,68,68,51,51,51,68,221,51,221,51,51,51,51,51,221,221,68,68,51,51,34,51,51,51,51,136,51,68,51,68,68,51,119,51,68,51,68,51,68,51,68,85,85,85,85,85,85,85,85,85,85,85,136,68,68,68,68,51, +221,51,221,51,221,221,68,51,221,51,51,51,221,34,51,51,34,51,51,51,51,51,51,34,51,51,51,119,68,51,68,51,68,51,68,51,68,51,119,85,85,85,85,85,85,85,51,119,119,51,51,68,51,119,119,221,51,221,51,221,221,68,51,221,51,51,51,221,34,51,51,34,51,51,51,51,51,51,34,51,51,51,119,68,51,68,51,68,51,68,51,68,51,119,85,85,85,85,85,85,85,51,119,119,51,51,68,51,119,119, + +}; +