MinecraftU / 2021-computer-adventures

Repository for our 2021 Computer Adventures Ruby project!
0 stars 0 forks source link

Add tetromino rotate mechanics #22

Closed jamespeilunli closed 3 years ago

jamespeilunli commented 3 years ago

Tetromino can now rotate, using the Matrix.transpose method and some mapping to reverse each row (transposing doesn't actually rotate).

If you spam up arrow (the rotate button), you won't actually fall, but this can be changed because eventually we will be implementing accelerated falling.

I'm making this a draft because my previous pull request hasn't been approved, and I don't want this one approved before that one.

dealingwith commented 3 years ago

Make sure to un-mark as "Draft" if it's ready for review

dealingwith commented 3 years ago

Also fix indentation

jamespeilunli commented 3 years ago

oops