JavaScript Tetris
Jake Gordon’s real HTML5 Tetris implementation: compact state, a fixed-step loop, a Canvas board, and a DOM score panel.
The production keeps its board model intentionally small: pieces are bit patterns, the loop accumulates time, and the renderer only paints settled and active blocks.
This is the real Arcade document and runtime, not a visual imitation. Package files are embedded inside the frame so the production remains local and deploys as one HTML file.
- Source
jakesgordon/javascript-tetris- Version
- Arcade snapshot 13f0821 · 2026-06-04
- Author
- Jake Gordon and contributors
- License
- MIT
- Runtime
- Canvas 2D
- Loop
- Fixed timestep
- Layout
- Canvas + DOM HUD
- Install
- One self-contained HTML
What it demonstrates
- Bit-pattern pieces and collision checks against a compact board array.
- A fixed-step update loop separated from drawing.
- Progressive levels, scoring, previews, and statistics without a framework.
Provenance note: Installed from ~/sanzcloud/projects/arcade/site/games/tetris/index.html. Inlined the production statistics helper and board texture; removed the Arcade lobby, telemetry, and vendor run wrapper. Game code is otherwise retained.
JavaScript Tetris is MIT licensed, copyright © 2011–2016 Jake Gordon and contributors. The Arcade registry records jakesgordon/javascript-tetris under MIT.
Read the bundled MIT license text
Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Jake Gordon and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.