Play Tetris

This is a version of Tetris that’s implemented in Rust and compiled to WASM. The release build along with all of the required assets comes in at 379Kb, which is slightly larger than the image above.

The graphics are rendered with WebGL using a shader that implements a cheap CRT effect with scanlines and a slight screen curvature.

Here are the keyboard controls:

Key Action
Enter Play/Pause Toggle
Left cursor Move Left
Right cursor Move Right
Down cursor Drop Tetris Piece
Up cursor Rotate Piece Anti-Clockwise
A Rotate Piece Clockwise
Z Rotate Piece Anti-Clockwise

Source code is available at