Skip to content

๐ŸŽฎ Classic Tetris game built with pure HTML5, CSS3, and JavaScript. ๐Ÿ“š Educational project demonstrating MVC architecture, Canvas API, and modern ES6+ features. ๐Ÿšซ๐Ÿ“ฆ No external dependencies

License

Notifications You must be signed in to change notification settings

qsozzz/javascript-tetris

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tetris Game - Pure JavaScript Implementation

A fully functional version of the classic Tetris game, built completely from scratch using HTML5, CSS3, and vanilla JavaScript โ€” no external libraries or frameworks involved. This project is a great resource for anyone learning game development, object-oriented programming, or modern JavaScript fundamentals.

How to Play

Play Online

You can play the game right in your browser โ€” no setup required!

๐ŸŽฎ Play Tetris Online

Play Locally

To play the game locally, follow these steps:

  1. Clone the repository or download the ZIP file
  2. If downloaded as ZIP, extract the files
  3. Navigate to the project directory
  4. Open index.html in any modern web browser
  5. No additional installation or build process required!

Game Controls

  • Enter: Start the game or restart after game over
  • Space: Pause/Resume the game
  • Arrow Left (โ†): Move tetromino left
  • Arrow Right (โ†’): Move tetromino right
  • Arrow Up (โ†‘): Rotate the tetromino clockwise
  • Arrow Down (โ†“): Soft drop (faster descent)

About

๐ŸŽฎ Classic Tetris game built with pure HTML5, CSS3, and JavaScript. ๐Ÿ“š Educational project demonstrating MVC architecture, Canvas API, and modern ES6+ features. ๐Ÿšซ๐Ÿ“ฆ No external dependencies

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.0%
  • HTML 29.6%
  • CSS 2.4%