Skip to content

SeanDylan1982/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Tetris Classic

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

Tetris Gameplay Screenshot

✨ Features

  • 🎵 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

🚀 Getting Started

Prerequisites

  • Modern web browser (Chrome, Firefox, Safari, Edge)
  • Internet connection (for CDN resources)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/tetris-basic.git
    cd tetris-basic
  2. Open index.html in your preferred web browser:

    start index.html  # On Windows
    open index.html   # On macOS

🎮 How to Play

Controls

  • ← → 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

Game Rules

  1. Complete horizontal lines to clear them and earn points
  2. The game speeds up as you level up
  3. The game ends when the stack of pieces reaches the top of the playing field

🛠️ Technologies Used

  • 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

📊 Scoring System

Lines Cleared Points
1 line 100
2 lines 300
3 lines 500
4 lines 800

🎵 Music Tracks

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!

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Original Tetris concept by Alexey Pajitnov
  • Classic Tetris music and sound effects
  • All contributors and testers

📬 Contact

For any questions or feedback, please open an issue on GitHub.


Made with ❤️ and JavaScript

About

Tetris - Classic. Classic Tetris game with scoring, levels, user accounts, leaderboard and music selection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published