Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.82 KB

React-Hooks-Tetris-Tutorial

Building a Tetris game with React to test new hooks feature and playing around. Who does not like TETRIS? The good old times with my Gameboy Color <3 :

Just use this tutorial as reference from [GameDev Tutorial] (https://www.youtube.com/watch?v=ZGOaCxX8HIU) and adapted following:

  • Rewrite StyledStartButton to have a CustomButton passing through props.children
  • Add pause and continue game functionality
  • Move the separated styles (StyledComponents) into the components file
  • Add the retro Tetris game sound (Tetris without the Tetris music is NOT Tetris :o)
  • Add own Tetrominos stylings (inspired by Lego)
  • Add responsive keyboard
  • Make game playable on mobile versions
  • Add Highscores

Credits:

This project was bootstrapped with Create React App

Available Scripts

In the project directory, you can run:

npm start

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

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.