diff options
Diffstat (limited to '3_sprites/sprite_tiles.c')
-rw-r--r-- | 3_sprites/sprite_tiles.c | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/3_sprites/sprite_tiles.c b/3_sprites/sprite_tiles.c new file mode 100644 index 0000000..e3aafac --- /dev/null +++ b/3_sprites/sprite_tiles.c @@ -0,0 +1,154 @@ +#include <stdint.h> + +#define SIZE_TILE_B (0x20) +#define SIZE_LONG (4) +#define SIZE_TILE_L (SIZE_TILE_B/SIZE_LONG) +#define TILE_COUNT (0x11) // Total tiles = 16 + +const uint32_t sprite_tiles[TILE_COUNT * SIZE_TILE_L] = { + // Sprite 1 - a red Fuzzl, 2x2 tiles + 0x00000888, + 0x00007788, + 0x00077788, + 0x07078888, + 0x07768868, + 0x87711111, + 0x08762218, + 0x88872228, + + 0x88876677, + 0x00878877, + 0x88888888, + 0x08878888, + 0x00887788, + 0x00807788, + 0x00088788, + 0x00000808, + + 0x80800000, + 0x77888000, + 0x88880800, + 0x88887880, + 0x86886780, + 0x11111888, + 0x71226780, + 0x82226800, + + 0x78668878, + 0x88888888, + 0x88888888, + 0x88888080, + 0x87888880, + 0x88788800, + 0x00887000, + 0x80700000, + + // Sprite 2 - a bouncy mushroom, 4x3 tiles + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000002, + 0x00000002, + 0x00000112, + + 0x00001222, + 0x00012772, + 0x00012772, + 0x00012222, + 0x00012222, + 0x00012777, + 0x00012777, + 0x00012777, + + 0x00001222, + 0x00001112, + 0x00001112, + 0x00000001, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x02212222, + 0x1227777A, + 0x1227777A, + 0x2777AAAA, + + 0x7777EEEA, + 0x777EEEEE, + 0x777EEEEE, + 0x777EEEEE, + 0x7777EEE7, + 0x27777777, + 0x27777777, + 0x22222777, + + 0x22222222, + 0x21111111, + 0x21111111, + 0x11114448, + 0x00018EEE, + 0x00048EEE, + 0x00048EEE, + 0x00004448, + + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x22221220, + 0xA7777221, + 0xA7777221, + 0xAAAA7772, + + 0xAAAEE777, + 0xAAAEE777, + 0xAAAEE777, + 0xAAAA7777, + 0x77777777, + 0x7777777A, + 0x7777777A, + 0x7772222A, + + 0x22222222, + 0x11111112, + 0x11111112, + 0x84441111, + 0x88841000, + 0x88844000, + 0x88844000, + 0x84440000, + + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x20000000, + 0x20000000, + 0x21100000, + + 0x22210000, + 0x72221000, + 0x72221000, + 0x72221000, + 0x72221000, + 0xA2221000, + 0xA2221000, + 0xA2221000, + + 0x22210000, + 0x21110000, + 0x21110000, + 0x10000000, + 0x00000000, + 0x00000000, + 0x00000000, + 0x00000000, +}; |