I’m really confusing on understanding the functionalities on multiplayer gaming. Am working on 2 player fighting game[Like wresting only with 2 player] which provides you to play either with AI (Single player) or Multiplayer (Play with another one) . I have already done the single player type, now am working on Multiplayer. Here am really confusing on understanding the basic techniques behind to develop the multiplayer game. because i need to fight with another one who is connect in the same network (LAN or Wi-Fi).
My basic questions are,
Do i need to Start and Initialise server, whenever a user select multiplayer button ? but, we can’t initialise more than one server at a time under same IP and Port, isn’t it ?
Just consider another user launching the game and tapping multiplayer button, here, i cant initialise the server again, so i need to show the existing servers available for this game, and he can able to send request to the server (or) he can able to connect the server directly ? Is it possible ?
Does any player can be act as a server ?
I saw lot of tutorials available on net, it have only how to start the server and connect as a client, no one providing the much information how to manage with the game ? Any good tutorials available for 2 player multiplayer game ?
I hope you all understand my question, These all are my basic understandings on network, please provide good suggestion if you think its worng, please bare if there is any grammatical mistakes …
You allways need 1 server instance, so clients can connect to it.
Unity’s networking is the Client/Server model, so 1 server and many clients connecting to that 1 server.
If you only want 2 players per game, you will need 1 server and 1 client connect to the server.