← Back to all games

JavaScript Tetris

Jake Gordon's clean Tetris implementation in pure JS, no framework.

Arrow keys move/rotate, space drops. Open in new tab ↗

Source

jakesgordon/javascript-tetris

License

MIT

Stars

★ 733

Size

~10-200KB

Tech

原生JS · Canvas

Deploy

Static

How to play

Shift left and right, rotate with up, soft-drop with down, and slam pieces home with space. Complete a full row to clear it and score — let the stack reach the top and it's over.

Arrow keys move/rotate, space drops.

Integration notes

The author published a full 'Tetris in JavaScript' tutorial alongside the code, which is cleanly split into game, piece and board modules — excellent value for learning and forking alike.

#tetris-like#keyboard#pixel-art#retro

FAQ

Is JavaScript Tetris free to play?

Yes. JavaScript Tetris is completely free, runs in your browser, and needs no install or account.

Is JavaScript Tetris open source?

Yes. It hosts the original open-source code by jakesgordon, released under MIT. Source: https://github.com/jakesgordon/javascript-tetris

How do you play JavaScript Tetris?

Arrow keys move/rotate, space drops.

More like this