What is the Best Way to do This? SDL C++

theopfor

In Runtime
Messages
173
Location
Right behind you
I'm going to make a Tetris variant, but I have never made a Tetris clone before. So, should I make the tetrominoes be images, or as individual blocks? I think images would be easier to move and rotate, but when it comes down to removing lines, I think that individual blocks would be easier.
 
Definitely individual blocks.
Off the top of my head, I would say that the entire play area is a grid of blocks and that each block has a state of being lit or unlit (that is, they are part of a tetromino or not). Tetris is fairly simple from a programming perspective because you only have two objects (of any complexity) on the screen to keep track of, specifically you have the tetromino and the pool of blocks at the bottom.
 
Back
Top Bottom