diff options
author | Julian <j@teule.nl> | 2018-11-07 13:34:54 +0100 |
---|---|---|
committer | Julian <j@teule.nl> | 2018-11-07 13:34:54 +0100 |
commit | 449085f880bbe83613cd1d27cd414e24963cb985 (patch) | |
tree | 8a8f18c66909c46a4fb9fa0380a63a3433103758 /sprites.h | |
parent | 2ad2c5239e5c06a628559183a21d0e82c256a3ac (diff) |
Kinda rotating
Diffstat (limited to 'sprites.h')
-rw-r--r-- | sprites.h | 46 |
1 files changed, 24 insertions, 22 deletions
@@ -5,6 +5,8 @@ struct Sprite { uint8_t buff[8]; uint8_t width; uint8_t height; + uint8_t xOff; + uint8_t yOff; }; const Sprite smiley = { @@ -17,7 +19,7 @@ const Sprite smiley = { 0b11111100, 0b00000000, 0b00000000 - }, 6, 6 + }, 6, 6, 0, 0 }; const Sprite checker = { @@ -30,7 +32,7 @@ const Sprite checker = { 0b01010101, 0b10101010, 0b01010101 - }, 8, 8 + }, 8, 8, 0, 0 }; const Sprite ball = { @@ -43,7 +45,7 @@ const Sprite ball = { 0b00000000, 0b00000000, 0b00000000 - }, 3, 3 + }, 3, 3, 0, 0 }; const Sprite miniSmiley = { @@ -56,21 +58,21 @@ const Sprite miniSmiley = { 0b00000000, 0b00000000, 0b00000000 - }, 4, 3 + }, 4, 3, 0, 0 }; const Sprite iBlock = { { - 0b11110000, 0b00000000, 0b00000000, 0b00000000, + 0b00011110, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 4, 1 + }, 4, 1, 3, 3 }; const Sprite oBlock = { @@ -83,72 +85,72 @@ const Sprite oBlock = { 0b00000000, 0b00000000, 0b00000000 - }, 2, 2 + }, 2, 2, 0, 0 }; const Sprite tBlock = { { - 0b01000000, - 0b11100000, 0b00000000, + 0b00100000, + 0b01110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 3, 2 + }, 3, 2, 1, 1 }; const Sprite sBlock = { { - 0b01100000, - 0b11000000, 0b00000000, 0b00000000, + 0b00011000, + 0b00110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 3, 2 + }, 3, 2, 2, 2 }; const Sprite zBlock = { { - 0b11000000, - 0b01100000, 0b00000000, + 0b01100000, + 0b00110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 3, 2 + }, 3, 2, 1, 1 }; const Sprite jBlock = { { - 0b10000000, - 0b11100000, 0b00000000, 0b00000000, + 0b001000000, + 0b001110000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 3, 2 + }, 3, 2, 2, 2 }; const Sprite lBlock = { { - 0b00100000, - 0b11100000, 0b00000000, 0b00000000, + 0b00001000, + 0b00111000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 - }, 3, 2 + }, 3, 2, 2, 2 }; const Sprite *blocks[] = { &iBlock, &oBlock, &tBlock, &sBlock, &zBlock, &jBlock, &lBlock }; |