Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danfalcon225/react_tetris
- Owner: DanFalcon225
- Created: 2022-09-03T19:23:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T20:52:58.000Z (over 2 years ago)
- Last Synced: 2024-04-22T20:34:18.519Z (8 months ago)
- Topics: custom-hooks-in-react, game-development, hooks, reactjs, tetris-game
- Language: JavaScript
- Homepage:
- Size: 30 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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