A JavaScript tetris clone of which there already exist a gazillion. The only difference is that I made this one 🙌🏻
I tried to keep close to the original colours, scoring system, the 7-bag random generator and board dimensions while making it possible to play it on both desktops and mobiles. Should be fun to kill some time on the toilet 💩
On devices that have a keyboard you can use the arrow keys and spacebar. On touchscreen devices, you can go along by swiping, tapping and pressing the screen.
Left/Right
- moves a piece left and right
Up
- rotate
Down
- soft drop
Spacebar
- hard drop
Swipe left/right
- moves a piece left and right
Swipe down
- soft drop
Tap
- rotate
(Longer) press
- hard drop
- Bug that might occur when you try to "slide" a piece under an existing one on the last row.
- Implement correct scoring.
- Revise the canvas renderer for both desktop and mobile (portrait and landscape).
- Gamepad support.