Build Tetris in Javascript React with Typescript. This is version 2 of my popular course where I added in Typescript and optimized some stuff.
This tutorial is considered advanced React so therefore I recommend having basic knowledge in Javascript and React.
Project files: https://github.com/weibenfalk/react-t...
00:00 - Introduction
00:36 - Starter Files
08:58 - Create Components
28:54 - Custom Hooks - usePlayer and useStage
51:56 - Stage update and player movement
1:06:21 - Collision detection
1:17:04 - Player rotation
1:25:46 - Clear rows
1:33:00 - Finish the game - useGameStatus
Support me by subscribing to this channel ❤️
Do you want to master #react, #gatsby, or #svelte fast? ⏩ 🚀 👩🚀
Check out my premium courses at https://www.weibenfalk.com
—
Find me somewhere below:
Website: https://www.weibenfalk.com
Linkedin: / thomas-weibenfalk-76356611
Twitter: / weibenfalk
Github: https://github.com/weibenfalk
FreeCodeCamp: https://www.freecodecamp.org/news/aut...
Dev.to: https://dev.to/weibenfalk