• Advertisement
Sign in to follow this  

Type of networking in platformer game

This topic is 1228 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi

I want to learn a bit of how multiplayer works in gamedev. To do so I am making a simple platformer game with a coop feature. I don't really know where to start. I was thinking of a client-server architetcture, where first player creates the game and the second one joins it. The only thing client would do is sending input to the server and drawing. So all of the calculations would be done on the server side. But that seems strange to me.. any tips on how to implement networking in a 2D platformer?

Share this post


Link to post
Share on other sites
Advertisement
Depending on the details of your game, if the server has to send the position of every object in the game to the client, this may end up being too much information and you may end up having performance problems.

If both players are running full versions of the game, the only thing they need to know from the other player is the precise sequence of inputs, so you could just communicate that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement