This will be a quick one for now. I have built a Tetris game with Morfik 07. The source code is here (Pascal). There are no many comments in the source, but you should get the idea. You can use the comment section here if you have any questions about it. I will answer all of them except those about the colors
Screenshot here
Update:
1. The Tetris game is now live at Morfik Labs
2. I found a bug in speed indication, a bug in setting speed and a screen dimension bug. I will fix them as soon as I have free hour. But that will be a good lesson for me to not do many changes in the last minute!
Update 27.06.2007:
I updated the Tetris Game and fixed some bugs. Here the changes are:
1. It can dynamically scale on different screen resolutions - tested at 800×600, 1024×768 and up - it should not have any problems.
2. Also changed the way speed is controlled.
3. Some look and feel changes.
August 7th, 2007 at 6:18 pm
Dude, you have to be able to set the rotation of the objects on its central block. For example, you can rotate the “L” shape block as follows:
| |———- ——–
|___ and | and | and finally |
| _______|
(sorry if this get’s disjointed when it is submitted)
At the moment you are flipping them two ways instead of four. (basically do 90 degree rotations instead of 180 dgree) The same goes for the mini - T shaped block.
Please can you fix this bug.
Many thanks!
August 7th, 2007 at 6:19 pm
As I had suspected my above image got screwed up when submitting.
Basic point is that the blocks should have 90 degree rotations.
Many thanks
August 7th, 2007 at 7:35 pm
ManyBugsDude, I will look at this later and soon (in a week) will update the code.
And thanks for the bugs … dude!