Skip to content

RdotSilva/React-Tetris-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Tetris

Classic Tetris built with React hooks.

Calculates score based on level and number of lines cleared. Displays user score, level, and current high score.

High score is stored using Web Storage API (localStorage)

Live Demo: Heroku Demo

Game Rules

Clear as many lines as possible to score points before your tetrominoes build up and hit top of the game screen.

The more lines you clear at once the more points you score!

Controls

← Move Left

→ Move Right

↓ Move Down

↑ Rotate Tetromino

D Drop Instantly

Click the Pause button to Pause/Unpause gameplay.

Installation

  1. Install dependencies in main project folder.
npm install

Run the client

npm start

Built With

  • JavaScript
  • React (React hooks)
  • VSCode

Screenshots

Gameplay Pause Game Game Over

License

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

About

Classic Tetris game built using React hooks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published