Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danfalcon225/react_tetris

Tetris Game using React.js and React Hooks
https://github.com/danfalcon225/react_tetris

custom-hooks-in-react game-development hooks reactjs tetris-game

Last synced: 21 days ago
JSON representation

Tetris Game using React.js and React Hooks

Awesome Lists containing this project

README

        

# React_Tetris

## `Getting Started`

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](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