Welcome to my Tetris clone project! This is a simple implementation of the classic Tetris game built using HTML, CSS, and JavaScript. The game features intuitive touchscreen controls for easy playability on mobile devices.
You can play the game live here.
- Classic Tetris gameplay with intuitive touchscreen controls.
- Responsive design for seamless gameplay on mobile devices.
- Pause feature allows players to pause and resume the game at any time.
- Endless mode: Keep playing until the game board fills up.
- Simple and lightweight implementation using vanilla JavaScript.
To run the game locally on your machine, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/catdesu/tetris-clone.git
-
Open the
index.htmlfile in your web browser. -
Enjoy playing Tetris!
- Left/Right Swipe: Move the tetromino left or right.
- Up Swipe: Rotate the tetromino clockwise.
- Down Swipe: Accelerate the downward movement of the tetromino.
- Pause Button: Click the pause button to pause/resume the game.
Contributions are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
- The Tetris game concept was created by Alexey Pajitnov in 1984.