Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.12 KB

File metadata and controls

28 lines (21 loc) · 1.12 KB

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)