Skip to content

Play the classic Tetris game made with HTML, CSS, and Vanilla JavaScript

License

Notifications You must be signed in to change notification settings

armjscom/javascript-tetris

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Clone the repository or download the ZIP file.
  2. If downloaded as a ZIP, unzip the file.
  3. Navigate to the project directory.
  4. 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.

About

Play the classic Tetris game made with HTML, CSS, and Vanilla JavaScript

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.7%
  • HTML 10.9%
  • CSS 2.4%