Giter VIP home page Giter VIP logo

javascript-tetris's Introduction

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.

javascript-tetris's People

Contributors

vontanne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

armjscom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.