Discussion:
Tetromino Rotation
(too old to reply)
Thomas Dimson
2010-05-19 01:21:17 UTC
Permalink
Hello,

How are we supposed to be performing tetromino rotation? There doesn't
seem to be 'one true way' for tetrominos.

-Thomas
Daniel Yim
2010-05-19 11:49:58 UTC
Permalink
Hi Thomas,

I'm not sure what you mean here. All the game logic you'll need for this
assignment has been given to you in the file game.hpp/cpp. All you
should be doing is using that class to update the game/rotate/whatever,
and then using the get method to figure out which positions on the grid
has cubes to draw.

Daniel
Post by Thomas Dimson
Hello,
How are we supposed to be performing tetromino rotation? There doesn't
seem to be 'one true way' for tetrominos.
-Thomas
Thomas Dimson
2010-05-19 19:12:27 UTC
Permalink
Next time I'll actually read the skeleton before starting to code. I had
been coding my logic by hand up until this point.

Thanks!
-Thomas
Ben
2010-05-20 16:32:12 UTC
Permalink
Haha I was doing the same thing! I spent about 4 hours coding the
shapes and collision detection manually... big waste of time.

Loading...