Tetris online — a game on HTML5 for the browser

Web Programming
Job 1 of 27
Developed a full-fledged arcade game "Tetris" in HTML5 that works in the browser without internet, registration, or installation of additional software.
Implemented features:

Classic mechanics from 1984: control of tetrominoes, filling horizontal lines, increasing speed with each level
Endless level system with increasing difficulty
"Shadow-ghost" — a hint of where the figure will fall in the current position
Preview of the next figure for planning moves
Scoring system with a bonus for filling multiple lines simultaneously

Controls:

← → — move the figure left/right
↑ — rotate the figure
↓ — accelerate the fall
Space — instant drop of the figure

Technical implementation: the game is contained in a single file tetris.html, which opens in any modern browser (Chrome, Firefox, Safari, Edge) without installation or internet connection.
Compatibility: Windows, macOS, Linux, ChromeOS.
Result — a lightweight, standalone game that demonstrates mastery of game mechanics logic, collision handling, and working with canvas/DOM in pure HTML5 and JavaScript.
Tags:
#HTML5 #JavaScript #Tetris #GameDev #Game #Development #Canvas #WebDev #Browser_Game #Frontend