Game Development Community

Blocks for puzzle game?

by Christopher Hernandez · in Torque Game Builder · 11/02/2006 (6:52 am) · 4 replies

I don't know if this has been asked before but I am still in the planning stages of a new puzzle game I'm working on and I can't for the life of me figure out the best way to tackle this problem.

I want to have 2X2 blocks fall from the top of the screen (like every other puzzle game ever created :-) but only I don't know of the best way to create these pieces. Also I would like them to be random colors within each block, as well, they must be able to split apart at the middle.

1 2
3 4

3 3
2 1

Like pictured above. Should I use a mixture of tilemaps and scripting? If so where do I begin. Are there any good tutorials out there that could help move me along the right path? Any help will be greatly appreciated.

#1
11/02/2006 (7:33 am)
Have you read the basic Tetris tutorial on TDN? It goes over two or three ways to create the tetris blocks then goes over one of them in depth.
#2
11/02/2006 (7:40 am)
If it's just a plain block you're after, I'd create a graphic for a single white/grey coloured block and use the blending commands to change the colour of it.

I'd then create a dummy sceneobject and mount 4 copies of my blended white block onto it. Then you just need to rotate the dummy object 90 degrees for your rotation commands, and if you want to split the block, just unmount the individual blocks and move them appropriately.
#3
11/02/2006 (8:18 am)
Ben. I have gone over the tetris tutorial but unfortunately I couldn't get it to work correctly because the method they used no longer applies to the newest version of TGB.

Philip. I haven't had much experience yet with blending or mounting of objects but I will look into that.

Thank you both for your responses.
#4
11/02/2006 (7:16 pm)
I had problems with the tetris demo, too. It's a shame that so many resources don't apply to what's actually in our hands.