This project is a simple yet fully functional implementation of the classic Tetris game using pure HTML
, CSS
, and JavaScript
, with no external libraries. It's designed to be lightweight and straightforward, suitable for beginners looking to understand game development with web technologies.
You can play the Tetris game online without any installation by visiting: Play Tetris Online
To play the game locally, follow these steps:
- Clone the repository or download the ZIP file.
- If downloaded as a ZIP, unzip the file.
- Navigate to the project directory.
- Double-click on
play.html
to open the game in your web browser.
- Enter: Start the game
- Arrow Left: Move left
- Arrow Right: Move right
- Arrow Up: Rotate the piece
- Arrow Down: Drop the piece faster
- Space: Pause/Resume the game
Enjoy the classic block-stacking game where the goal is to clear as many lines as possible by completing horizontal rows of blocks without any gaps.
- Start, pause, and resume gameplay
- Keyboard controls for moving and rotating Tetris blocks
- Increasing difficulty as you progress in the game
Your contributions are welcome! If you'd like to improve the Tetris game, please check out the contributing guidelines.
This game is open-sourced under the MIT license.