Posted November 28, 2022 by SQUAX Commander
#unity #multiplayer #netcode
I decided the prototype could use a little realtime magic!
Having previously used Mirror/FishNet I decided to take a small risk and try out Unity's newest multiplayer solution: Netcode for GameObjects
Opinion: it's pretty good, I was able to get my own realtime relay server working within a few hours, and have got the core battle system working with 2 players, and simple matchmaking.
The unity transport protocol only works with sockets, but there is a web-socket implementation which I will give a go at implementing soon.
Some gotchas that tripped me up:
Check out the latest build for a preview of the multiplayer, it still has a fair few bugs but is definitely playable :)