javascript-tetris
javascript-tetris copied to clipboard
Play the classic Tetris game made with HTML, CSS, and Vanilla JavaScript
Tetris Game
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.
Live Demo
You can play the Tetris game online without any installation by visiting: Play Tetris Online
How to Play
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.
Game Controls
- 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.
Features
- Start, pause, and resume gameplay
- Keyboard controls for moving and rotating Tetris blocks
- Increasing difficulty as you progress in the game
Contributing
Your contributions are welcome! If you'd like to improve the Tetris game, please check out the contributing guidelines.
License
This game is open-sourced under the MIT license.