A few month ago i had an idea about a multiplayer game and i also did not know how to start.
I then decided to create a singleplayer game out of the idea, just to make sure, i am able to implement the game mechanics.
As soon as i finish that game (will take a while :P) i guess i will rewrite the whole game (with some copy+paste), with multiplayer in mind, as it will change a few things.
So basicly i started with the “core game”, just to know how to implement that things.
Then, when i start with the multiplayer, i will start with thinking about the structure. There are a few ways to implement multiplayer, you need to be sure what exactly do you want.
So you need to ask yourself:
- Who handles the logic (clien or server)?
- How the data will be sent (UDP or TCP)?
- What data will go in which direction (client to server and server to client)?
The implementation of the game mechanics will depend on the answers to those questions, for example, if the server handles the logic, the client will just send it’s input, no real logic needed.
If the client handles the logic itself, the server will only foreward and check the data he gets. So the server doesn’t really need much logic.