I finished my version of Tetris, and it's now available for you to try on your PC. I set a goal of finishing the game before Super Bowl XLV, and there turned out to be a lot to.
I finally finished my version of Tetris. It's a Windows game. To play on your PC, download the installer below.
My implementation of Tetris is nearly finished! It plays pretty decently, which is the measure of any game. There's no sound right now, but there's a help screen and a modest splash screen. My goal is to release it before the Super Bowl XLV (February 6, 2011).
Tonight, I reached a good point with my coding of Tetris: I managed to get falling pieces that I could move horizontally. Some big things are missing: boundary detection, the creation of the "mound" (the pieces that collect at the bottom of the playing field), and the randomization of the pieces themselves.
I've been noodling with a Win32 version of Tetris, the ubiquitous "shape placing" game. I'm working in C++ using the Simple Directmedia Layer for my graphics. One of the interesting things in working out the game is the "shape" data. Below is the code for one my shapes, and the methods to "rotate" and "draw" it.