From ee21519c62f14f21986f404c1be6263c90ed1d3c Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 5 Nov 2018 15:24:07 +0100 Subject: Added tetrisBlocks --- sprites.h | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) (limited to 'sprites.h') diff --git a/sprites.h b/sprites.h index 5aceee4..3b53d47 100644 --- a/sprites.h +++ b/sprites.h @@ -59,4 +59,98 @@ const Sprite miniSmiley = { }, 4, 3 }; + +const Sprite iBlock = { + { + 0b11110000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 4, 1 +}; + +const Sprite oBlock = { + { + 0b11000000, + 0b11000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 2, 2 +}; + +const Sprite tBlock = { + { + 0b01000000, + 0b11100000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 3, 2 +}; + +const Sprite sBlock = { + { + 0b01100000, + 0b11000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 3, 2 +}; + +const Sprite zBlock = { + { + 0b11000000, + 0b01100000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 3, 2 +}; + +const Sprite jBlock = { + { + 0b10000000, + 0b11100000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 3, 2 +}; + +const Sprite lBlock = { + { + 0b00100000, + 0b11100000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000 + }, 3, 2 +}; + +const Sprite *blocks[] = { &iBlock, &oBlock, &tBlock, &sBlock, &zBlock, &jBlock, &lBlock }; + #endif -- cgit v1.2.3