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.
You can play the game right in your browser โ no setup required!
To play the game locally, follow these steps:
- Clone the repository or download the ZIP file
- If downloaded as ZIP, extract the files
- Navigate to the project directory
- Open
index.htmlin any modern web browser - No additional installation or build process required!
- 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)