Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Online Game Programming  (Read 3005 times)

0 Members and 2 Guests are viewing this topic.

NovaSkyer

  • Newbie
  • *
  • Posts: 1
    • View Profile
Online Game Programming
« on: April 18, 2015, 06:23:04 pm »
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 :)

zmertens

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Online Game Programming
« Reply #1 on: April 18, 2015, 08:19:55 pm »
There's a good (albeit brief) example of client-server architecture in the SFML game book. I'm looking to learn more about the SFML network module too and that's the resource I've been using. It sounds like what you suggested is the general idea though.
The truth will set you free but first it will piss you off.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Online Game Programming
« Reply #2 on: April 19, 2015, 03:05:23 am »
"2D online game" is too generic to suggest anything specific.

I suggest you first build the 2D game for local game play and if you actually get that finished you can pickup the networking part again. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/