In this game dev experiment, we perform a code review of a 3D tic-tac-toe built using Three JS and React. is a JavaScript library that provides an API for WebGL and makes it easy to create 3D games/animations on a browser. You can draw complex shapes, import blender objects, and even animate them all with JavaScript. Today, we go over how to set up the Three JS scene, create our game board, animate player actions, and detect when someone wins the game.
📖 Code -
🐦 Twitter -
💻 GitHub -
🌎 Website -
== [ Resources ] ==
Docs -
Guide -
Raycaster - #api/en/core/Raycaster
Dat GUI Tutorial - @bumbeishvili/three-js-dat-gui-controls
Scene Guide -
== [ Timestamps ] ==
00:00 Tic Tac Toe Demo
00:42 Create Scene with Board
03:20 Detect Click with Raycasting
05:30 Alternate Between Players
07:04 Check Win Conditions
== [ Tags ] ==
#suboptimal #metaverse #threejs
1 view
21
8
1 week ago 00:20:33 1
Movie “Wicked” Sign of the End Time
1 week ago 01:07:30 1
MICHEL DOURTHE : Médium
1 week ago 00:03:37 1
Админы Актуального Курска и другие куряне, покажите общественные туалеты Курска .?!) #курскиймайор
2 weeks ago 00:03:01 1
Ivy from MRLsexdoll
2 weeks ago 00:33:07 1
Le Parquet a frappé fort : 5 ans de prison, 300 000 euros d’amende et une inéligibilité automatique