#ifndef sprites #define sprites struct Sprite { uint8_t buff[8]; uint8_t width; uint8_t height; uint8_t xOff; uint8_t yOff; }; const Sprite smiley = { { 0b11001100, 0b11001100, 0b00000000, 0b00110000, 0b10000000, 0b11111100, 0b00000000, 0b00000000 }, 6, 6, 0, 0 }; const Sprite checker = { { 0b10101010, 0b01010101, 0b10101010, 0b01010101, 0b10101010, 0b01010101, 0b10101010, 0b01010101 }, 8, 8, 0, 0 }; const Sprite ball = { { 0b11100000, 0b10100000, 0b11100000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 3, 0, 0 }; const Sprite miniSmiley = { { 0b01010000, 0b10000000, 0b11110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 4, 3, 0, 0 }; const Sprite iBlock = { { 0b00000000, 0b00000000, 0b00000000, 0b00011110, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 4, 1, 3, 3 }; const Sprite oBlock = { { 0b11000000, 0b11000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 2, 2, 0, 0 }; const Sprite tBlock = { { 0b00000000, 0b00100000, 0b01110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 2, 1, 1 }; const Sprite sBlock = { { 0b00000000, 0b00000000, 0b00011000, 0b00110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 2, 2, 2 }; const Sprite zBlock = { { 0b00000000, 0b01100000, 0b00110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 2, 1, 1 }; const Sprite jBlock = { { 0b00000000, 0b00000000, 0b001000000, 0b001110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 2, 2, 2 }; const Sprite lBlock = { { 0b00000000, 0b00000000, 0b00001000, 0b00111000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, 3, 2, 2, 2 }; const Sprite *blocks[] = { &iBlock, &oBlock, &tBlock, &sBlock, &zBlock, &jBlock, &lBlock }; #endif