Skip to content

Experience classic Tetris reimagined with a vibrant neon aesthetic. This fully-responsive game, built with pure JS and HTML5 Canvas, features dynamic scoring, progressive difficulty, and a "next piece" preview. It includes full support for both desktop keyboard and mobile touch controls.

License

Notifications You must be signed in to change notification settings

rajatkumar1011/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

TETRIS

A modern, responsive Tetris clone built with HTML5 Canvas and pure JavaScript. Description Experience the timeless arcade classic reimagined with a vibrant, retro-neon aesthetic. Neon Tetris is a fully-responsive web-based game built from the ground up using pure JavaScript and the HTML5 Canvas API.

It features the complete, classic Tetris experience, including dynamic scoring, a leveling system that increases game speed, and a "next piece" preview. The project is styled with Tailwind CSS for a sleek, modern UI and includes intuitive on-screen controls for a seamless mobile experience alongside traditional desktop keyboard support.

Technologies Used

HTML5: Semantic structure for the game layout, modals, and info panels.

CSS3 (with Tailwind CSS): Utility-first framework for rapid, responsive UI development. Custom CSS is used for the 'Press Start 2P' font and the signature neon-glow effects.

JavaScript (ES6+):

Handles all core game logic, including piece movement, rotation (matrix transposition), collision detection, and line clearing.

Manages the game state (score, level, pause, game over).

Uses requestAnimationFrame for an efficient game loop.

Manipulates the DOM for UI updates (score, level) and modal interactions.

HTML5 Canvas API: Used to draw the game board, the falling pieces, and the "next piece" preview.

Try Now: https://rajatkumar1.me/tetris

About

Experience classic Tetris reimagined with a vibrant neon aesthetic. This fully-responsive game, built with pure JS and HTML5 Canvas, features dynamic scoring, progressive difficulty, and a "next piece" preview. It includes full support for both desktop keyboard and mobile touch controls.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages