Networking done right

Traversal

Member
I would like to create a simple game that allows to read and write clicks from 2 players to compare them.

As it comes to networking I am not sure if a http_get would not be too slow in response reading my MySQL via php.

Direct Sockets might expose the users ipadr to others, which I must avoid.

So what options could I go for, to exchange infomation like clicks and screencoordinates between 2 Player?

Should I setup a Server Version of my game and let them connect via that Serverapp? How many games would it be possible to host this way? Will it be fast and reliable enough?
 

Mert

Member
It is best to make a UDP server. If you can manage to make your server concurrent, you can even host 1 billion players.
 
Top