Skip to content

DanFalcon225/React_Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React_Tetris

Getting Started

This project was bootstrapped with Create React App.

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any errors in the console.

Game logic:

  • Rows section - calculates each row which was cleared during the game

  • Level section - after every 10 cleared rows level increases hence speed of tetromino increases as well

  • Score section - score counted for every cleared row by the following formula: cleared row * level

Gameplay:

  • Movements: down, left and right arrow keys (hold the down key to increase the tetromino speed)

  • Tetromino rotation: up arrow key

Screenshot 2022-09-03 at 21 25 46