Online Game Programming

Hi,

I want to write a 2D online game. My qustion is how should it be divided to client and server, should the server do all the game logic while the client only draws objects to the screen? Or maybe there is another way to go at it?

Thanks in advance :)
Last edited on
Yes, the server should do all the game logic (to prevent cheating) while the client just renders everything. The client still has to do some prediction about movements to make the game look fluid with poor connections - this is called dead reckoning.

SFML, Boost, and Lacewing all have networking libraries for you to use. Don't use low-level sockets like WinSocks - you will pull your hair out.
Last edited on
Topic archived. No new replies allowed.