

That's my simple explanation of a topic that can get very complex. Peer-to-peer sends data between two or more machines and each player is responsible for running the game and responding to incoming data about where other players are and the state of the world. The players are clients that render what the server tells them is going on in the game. Client-server (or server authoritative) runs the game or simulation on a server and that is where the authoritative state of all objects in the game world reside. There are basically two kinds of server setups for multiplayer games. Here are a couple good tutorials on basic two-player/multi-player networking: Great recent blog post about networking solutions:.Here is a good summary of the situation with "native" Unity networking and a write-up on the available other solutions: Also check to make sure that you're using demos or references written in the last couple of years, as things go out of date fairly quickly. Most of the tutorials and demos out there were built using UNET, which essentially has been retired. It's important to check what networking system a demo is built on.
2 PLAYER UNITY GAMES FREE
While the one below isn't free ($30), it is a very solid tutorial/example not just on networking but on a lot of aspects of game design: Many of the tank game demos and tutorials out there are out of date or a bit simplistic, but there are a couple exceptions. And most importantly, even something simple, when done well, offers a lot of opportunity for craft and learning.

Reading this post, someone might say, "Dude, there are a gazillion Unity tank game demos out there, what is the point of doing another one?" My answer comes back to the "built, not bought" approach and having some personal goals for my game projects: Standalone executable (not just running in the editor), an actual game loop that can be played repeatedly without exiting and restarting, and something that has gameplay to it and not just a demo of a basic mechanic or system. Lastly, there are dozens if not hundreds of online tutorials and books available covering all kinds of projects and games in Unity, including tank games. ( Here's a post about a VR project I did in Unity using the HTC Vive and Steam VR.) The Asset Store also has many, many demos and systems of various sizes and complexities that can be downloaded and tinkered with or used as examples.
2 PLAYER UNITY GAMES PROFESSIONAL
The cool thing about Unity in my view is that it's easy to get something basic up and working quickly (and sometimes without needing to do any real coding), but there is no limit to how advanced a project can get, all the way to shipping a complete professional game for console, PC, mobile and VR.
