So I developed a sort of working model for how Tetris blocks can be represented as a 3 dimensional array. I am using structures in a C program to keep track of them. Theoretically this could be used in a tetris clone but it’s important to get all the math right first so I have a function that can print text to the console to get an idea of what it would look like.
Here are screenshots of my source code so far that has code for the T,L, and S blocks.
And here are some screenshots of the output of the program when run.
I am Chastity White Rose, lover of all unicorns and ponies and artist of pixels and polygons.
Fabulous secret powers were revealed to me the day I put on my checkerboard dress and said:
“By the power of grayscale! I have the power!”
And I became She Man, the most powerful transwoman in the universe!
And I came to understand who I am. I am a programmer who can draw pixels to bitmaps of both black and white. And a Vegan, who protects the innocent! But within me lies a mortal heart, which suffers from depression. Will I have the strength to resist? Or will it be my doom.
View all posts by Chastity White Rose