News for hackers. Stuff that matters.
Re:Show HN: Simple JavaScript Tetris by sp332 on Wednesday November 02, 2016 @05:12PM (#12859328)
I think the rotations feel wrong. If I get a Z piece, rotating twice should get me back where I started. Instead it's shifted sideways one space. I have to shift 4 times to get back.
Re:Show HN: Simple JavaScript Tetris by jstimpfle on Wednesday November 02, 2016 @06:33PM (#12860005)
The scheme used here is a 4x4 block (the minimum required to accomodate all pieces) and rotations by 90 degrees. You can rotate both cw and ccw, this works for undoing rotation of all pieces.