A modern, feature-rich implementation of the classic Tetris game built with vanilla JavaScript, HTML5, and CSS3. Experience the timeless puzzle game with smooth animations, multiple music tracks, and user accounts with leaderboards.
🔗 Play Now
- 🎵 Multiple background music tracks from classic Tetris
- 👤 User account system with registration and login
- 🏆 Persistent high scores and leaderboards
- 🎚️ Progressive difficulty levels
- 🎨 Modern, responsive UI with smooth animations
- 🎮 Classic Tetris gameplay with all standard pieces
- 🎯 Next piece preview
- ⏯️ Pause/Resume functionality
- 🔉 Sound effects and music controls
- 🌓 Dark theme optimized for extended play sessions
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Internet connection (for CDN resources)
-
Clone the repository:
git clone https://github.com/your-username/tetris-basic.git cd tetris-basic -
Open
index.htmlin your preferred web browser:start index.html # On Windows open index.html # On macOS
- ← → Arrow Keys: Move piece left/right
- ↑ Arrow Key: Rotate piece
- ↓ Arrow Key: Soft drop (move down faster)
- Space: Hard drop (instantly drop piece)
- P: Pause/Resume game
- M: Toggle mute
- Complete horizontal lines to clear them and earn points
- The game speeds up as you level up
- The game ends when the stack of pieces reaches the top of the playing field
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Styling: Custom CSS with animations
- Authentication: LocalStorage-based user system
- Audio: HTML5 Audio API
- Icons: Font Awesome
- UI Framework: Bootstrap 5
| Lines Cleared | Points |
|---|---|
| 1 line | 100 |
| 2 lines | 300 |
| 3 lines | 500 |
| 4 lines | 800 |
Enjoy multiple background music tracks from classic Tetris:
- Title Screen
- A-Type Music (v1.0)
- A-Type Music (Korobeiniki)
- B-Type Music
- C-Type Music
- And more!
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Original Tetris concept by Alexey Pajitnov
- Classic Tetris music and sound effects
- All contributors and testers
For any questions or feedback, please open an issue on GitHub.