-
An example of common rotation matrix used in game development
We’re building a Tetris clone. Imagine the game arena as 10 by 20 grids. An L-shaped tetromino is located in a certain position in the arena. To designate a position in the grids, we use integers 0 to 9 for the horizontal axis (x) & 0 to 19 for the vertical (y). Each coordinate can […]