Skip to main content
GameDev.net gamedev.net
🔒 Locked

Slight Problem here...

Started by Shazer Sep 20, 2000 at 9:33 AM 1 replies 200+ views
Original Post
Shazer
Shazer
Hey all... I am having trouble with my Tetris type game. I can''t figure out how to rotate the blocks. I am using a 2d array to store the blocks in the playing field. If you would help me I would greatly appreciate it. -Shazer "Early to bed and early to rise, makes a man stupid and blind in the eyes." -Mazer Rackham, Ender's Game
Optimism is not a state of mind, but a form of life!SuperNova Games
Dormeur
Dormeur
In mathemathics, that operation is called a transposition (if my English is correct): it means writing the rows of a matrix as columns (or vice versa). It''s not that hard, you just have to work it out some more .

Dormeur
Shazer
Shazer
Hey! That would work!! Thanx a bunch!
Now I just have to get that worked out... ;-)

Shazer

"Early to bed and early to rise, makes a man stupid and blind in the eyes." -Mazer Rackham, Ender's Game
Optimism is not a state of mind, but a form of life!SuperNova Games

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.