Rotate only one time
Most people use 2D arrays to store their grids, one for the main tetris screen - all the fixed blocks, and another smaller one for the current game piece, it makes moving, collision and rotating much easier.
,Jay
Edit: The OldGrid and NewGrid are just names I gave my arrays.
[edited by - Jason Zelos on April 25, 2002 2:38:28 PM]
,Jay
Edit: The OldGrid and NewGrid are just names I gave my arrays.
[edited by - Jason Zelos on April 25, 2002 2:38:28 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement