aboutsummaryrefslogtreecommitdiff
path: root/sprites.h
diff options
context:
space:
mode:
authorJulian <j@teule.nl>2018-11-05 15:24:07 +0100
committerJulian <j@teule.nl>2018-11-05 15:24:07 +0100
commitee21519c62f14f21986f404c1be6263c90ed1d3c (patch)
tree8e9f151629574bb6854148739b8c550a6792bcf4 /sprites.h
parent9d6f0cce50cb2cde4eb558bac73277eb5395cfcf (diff)
Added tetrisBlocks
Diffstat (limited to 'sprites.h')
-rw-r--r--sprites.h94
1 files changed, 94 insertions, 0 deletions
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