~/tools/tetris

Tetris.js

Stack tetrominoes. Clear lines. Speed ramps every 10 lines. Pieces in cyan, purple, pink, amber, green — the Mentria palette.

What is this? Hide details

What is Tetris?

Browser-native Tetris with a terminal aesthetic. HTML5 Canvas, accurate piece spawning with Super Rotation System logic, hold queue, ghost piece, level-based gravity. High score saved to localStorage. No install, no signup, no third-party scripts — game logic and timing all run client-side and the game works offline.

Tetris

Controls

Keyboard

  • ←→ADMove
  • ↑WXRotate
  • ZRotate left
  • ↓SSoft drop
  • SPACEHard drop
  • C⇧Hold piece
  • GToggle ghost
  • PESCPause
  • RRestart

Controller

  • D-pad / stickMove
  • ↓Soft drop
  • ↑ARotate
  • BRotate left
  • XLBRBHold piece
  • YHard drop
  • STARTPause

Touch

  • ◎Tap the board to rotate
  • ⇄Drag left or right to move
  • ⇣Swipe down to soft drop
  • ⇡Flick up to hard drop
  • ▤Or use the buttons under the board
Score
0
Level
01
Lines
0
Hold

Next
Best
0
Combo
—