Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Online Game Programming
Print
Pages: [
1
]
Author
Topic: Online Game Programming (Read 3006 times)
0 Members and 1 Guest are viewing this topic.
NovaSkyer
Newbie
Posts: 1
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
Logged
zmertens
Jr. Member
Posts: 80
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.
Logged
The truth will set you free but first it will piss you off.
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Online Game Programming