Multiplayer Tic Tac Toe Game using Unity Netcode and Relay Service

Learn to make a multiplayer tic tac toe game using unity netcode for gameobjects and relay service. TicTacToe is a two player turnbased board game. Make a complete multiplayer tic tac toe game in less than 2 hours. Looking to develop your multiplayer game development skills? In this tutorial, we'll explore how to create a turn-based, multiplayer tic-tac-toe game using Unity Netcode and Relay. You'll learn how to implement core gameplay mechanics, synchronize them over the network, and leverage Unity Relay for low-latency gameplay. We'll also dive into how to implement turn-based gameplay, adding an extra layer of strategy to your game. By the end of this tutorial, you'll have a strong foundation for building your own multiplayer games in Unity. So, join us and get ready to take your game development skills to the next level! Please support me by subscribing my channel. Chapters 00:00:00 Intro 00:00:30 Tic Tac Toe Board Creation 00:04:50 Install Unity Netcode for Gameobjects 00:05:20 NetworkManager 00:07:00 GameManager 00:08:40 Start Host, Start Client 00:10:50 Board Prefab 00:11:25 OnClientConnectedCallback 00:14:40 Spawn Board 00:16:26 NetworkObject & NetworkPrefab 00:19:50 Tic Tac Toe Game logic (Board Managere) 00:28:25 Change Button Sprite on Click 00:33:15 ServerRpc, ClientRpc 00:38:00 ServerRpc[(RequireOwnership=false)] 00:40:00 Make opposite button non interactable 00:41:15 Change Turn & NetworkVariable 00:51:15 Game Win logic 00:53:30 Game Result UI 00:56:25 Show Game Result (RPC) 01:03:15 Game Draw Logic 01:11:33 Play Again 01:20:52 Relay Unity Service (Play on different networks on different devices) 01:21:15 Install Relay Package 01:22:10 Link project to Unity services and turn on Relay 01:24:48 Change Unity Transport Protocol type to Relay Unity Transport 01:25:15 Initialise Unity Service and Authenticate with Unity Service using Anonymous sign in. 01:26:44 Relay allocation 01:28:40 Get Relay Join code 01:31:10 Join Relay using Join Code 01:31:45 Send Host Data to allocated relay 01:33:54 Send Client Data to allocated Relay 01:36:25 Final Test Project Link on Github :
_____________________________________________________________________ Other great Unity channels: Unity -    / unity3d   CodeMonkey -    / @codemonkeyunity   Brackeys -    / brackeys   Dani - https://www.youtube.com/channel/UCIab...
Jabrils - https://www.youtube.com/channel/UCQAL...
BlackthornProd - https://www.youtube.com/channel/UC9Z1...
Sykoo -    / sykootv   Jason Weimann - https://www.youtube.com/channel/UCX_b...
Jonas Tyroller - https://www.youtube.com/channel/UC_p_...

Смотрите также