A simple Tetris game built with HTML, CSS, and JavaScript.
- Classic Tetris gameplay
- Responsive design
- Score tracking
- Customizable game canvas size
- High score leaderboard (stores top 10 scores)
- Toggle-able sidebar with game information
- Full keyboard controls
- HTML5 for structure
- CSS3 for styling
- JavaScript for game logic
- Open
index.html
in your browser. - Use the following controls:
- Left arrow key: Move piece left
- Right arrow key: Move piece right
- Up arrow key: Rotate piece
- Down arrow key: Speed up piece
- Clear lines to score points and progress to higher levels.
- The game ends when pieces stack to the top of the board.
- Adjust the canvas width and height using the input controls
- Click "Apply Size" to resize the game board
- For best experience, play in full screen mode (F11)
The game automatically tracks and displays the top 10 high scores achieved. These scores are stored locally in your browser.
- Use the "Hide Sidebar" button to toggle the sidebar visibility for a more immersive gameplay experience
- The game is designed to be responsive and playable on various screen sizes
- Clone the repository:
git clone https://github.com/CTechDigitalpt/simple-tetris-game.git
- Navigate to the project directory:
cd simple-tetris-game
- Open
index.html
in your browser to start playing.
No additional dependencies or installations required!
See CONTRIBUTING.md for guidelines.
If you enjoy this game and would like to support its continued development, please consider making a donation:
Your support helps maintain and improve this project and others. Thank you!
This project is licensed under the MIT License. See the LICENSE file for details.