Tagged Questions
2
votes
2answers
101 views
Java Tetris - Matrix Rotations
I'm building Tetris in Java and am trying to use linear algebra to rotate a piece composed of 4 tiles.
My friend was explaining the way to do it is:
He said:
"To clarify, you do need to rotate ...
3
votes
3answers
257 views
Tetris - Rotations using Linear Algebra (Rotation Matrices)
I'm making Tetris in Java and am at the point of rotations... Originally I was hardcoding each rotation:
if (direction.equals("right")) {
if (shape.equals("Bar")) {
if ...
6
votes
4answers
1k views
How do I find the intersection of two lines
I have a bounding box on my character, its position in the previous frame an the current frame. The bounding box is axis aligned.
My character is running around inside a cave, I have a list of ...