Dostris (a complete game in 3 hours)
Basically its a tetris clone I wrote for the dos console. There are a few noticeable changes from the original for the purpose of simplification.
I coded 2 hours between classes at my college, and finnished it up in 1 hour at home for a total of 3.
Simplifications:
-Playing area rotated sideways to fit into the console.
-Playing Pieces are now 3x3 to accomidate for simple rotating
-Only 5 types of pieces - I havent made the L shapes yet.
-Rotate only goes one direction - Clockwise.
-You can only move the block up and down for positioning. You cant speed up the falling rate voluntarily.
The code concept is pretty simple - but it gets a bit messy accomidating for colored text's and basic drawing problems.
The collision function needs a tiny fix - the long shape (1 row of 3 blocks) cant be moved to the top or bottom row when rotated long ways - experimenting will let you see what I mean. I dont think it will be too hard to fix it.
Controls: When you open the exe up you should see the playing field and the preview block - and one active block - press enter to start.
e moves the active block piece up one space
d moves the active block piece down one space
r rotates the block 90 clock wise
esc stops execution of the program.
Feel free to post comments about the emulation itself or the coding behind it. Progmatic suggestions and questions are welcomed.
I'll post the source in a new thread to break up my post.
source and executable are included in the attached zip.
This has only been run in WinXP in the winXP console window. I have no idea as to if it fits in win98 - give it a try.