I am trying to create a tetris type game. The example has all of the shapes drawn in an animation frame. Then you can rotate it the frame except for frame three since it is already a box. I would like to be able to use the same principle but have each block be individual, with individual collision behavior, gravity ect.
For example I would like the L shaped tetris piece be four individual sprite objects, be able to rotate it just like the L shaped piece in tetris. When the L shaped tetris piece collides with other object break up and no longer be apart of that L tetris piece.
Any suggestions on how to do this. I got most of it figure out except the rotation.