How to Build Tetris in React - GameDev Tutorial (with React Hooks!)
166.8 هزار بار بازدید -
5 سال پیش
-
Learn to create a Tetris
Learn to create a Tetris game with React Hooks in this tutorial course for beginners. You will learn how to build Tetris from scratch using hooks like useState, useEffect, useCallback and custom hooks. Styling is done with Styled Components.
💻 Starter files: github.com/weibenfalk/react-tetris-starter-files
🎥 Tutorial from Thomas Weibenfalk. Check out his YouTube channel: / @weibenfalk
🔗 Watch more courses from Thomas on his website: www.weibenfalk.com/
⭐️ Course Contents ⭐️
⌨️ (00:00) Introduction
⌨️ (03:40) create-react-app and tooling
⌨️ (06:57) Scaffolding Components
⌨️ (15:49) Stage and Tetrominos
⌨️ (32:05) Styling with Styled Components
⌨️ (57:19) usePlayer and useStage
⌨️ (1:12:51) Stage update and player movement
⌨️ (1:37:02) Collision Detection
⌨️ (1:50:46) Player RotationG
⌨️ (2:04:12) Clear Rows
⌨️ (2:11:37) drop with useInterval
⌨️ (2:18:47) useGameStatus and React.memo
--
Learn to code for free and get a developer job: www.freecodecamp.org/
Read hundreds of articles on programming: www.freecodecamp.org/news
5 سال پیش
در تاریخ 1398/05/23 منتشر شده
است.
166,819
بـار بازدید شده