Best Tetris Data structure to use?

BlitzMax Forums/BlitzMax Beginners Area/Best Tetris Data structure to use?

I'm not sure what your suggestions mean. Eg:

2. do your collision by checking each cell instead of the whole object... its not an abnormal object this should make it easier.


The best way to do collision checking for these kinds of games is to (without the user seeing of course) pick up the piece, see if it can fit in its new location: if it can, put it there, if it can't, replace it. Then you only need to write a simple place-checking function, other than go around the whole shape checking all cells to all directions.