This content has been marked as final. Show 1 reply
Warning: I'm not a game developer, so maybe what I'm going to say has nosense ;)
What about creating an object for the falling piece? The object control de position of its own squares and check for collisions at the bottom of the screen. Then you should work in the screen as it is a grid where pieces are stored, and everytime the falling object touchs some other piece, check what rows are fully filled and move those which are over it.
Don't know if it will help you :)