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 :
DEMO: click here
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:
- Robot Icon made by (https://www.flaticon.com/authors/smashicons)[Smashicons] from (https://www.flaticon.com/)[www.flaticon.com]
- Keyboard Icon made by (https://www.flaticon.com/authors/pixelmeetup)[Pixelmeetup] from (https://www.flaticon.com/)[www.flaticon.com]
This project was bootstrapped with Create React App
In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.