I started a project already and created a grid for the blocks to fall into. Only thing is I don't know how to get pieces to fall into that grid or get collision detection for each block.
So far I found a way t draw the blocks made of 4 segments. What I do is draw each segment and for collision detection I plan to create a rectangle for each segment. I don't think that will be efficient when the grid is almost full. Also I don't know how I would get rid of specific rows when a line is complete and move the rows above down one segment.
It's all just confusing to me, I looked at tons of source code for the game, and apparently there's a different method for making the game. And i don't understand most of what the code is trying to do. Is anyone willing to help?
P.S. I'm programming with the Java swing API
This post has been edited by mastrgamr: 22 January 2012 - 09:54 PM