Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

MySQL and PHP for multiplayer game

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Epic Zombie   Members   

145
Like
0Likes
Like

Posted 19 July 2012 - 05:43 AM

Hi,
I'm working on location-based Android games. My current project is single player, but I intend to make my next project a multiplayer game. My intention is to allow your location to be shared with other players (you can turn this on and off). Can this be done with standard PHP/MySQL? I want to update the player positions once every minute or so.

#2 TMKCodes   Members   

271
Like
0Likes
Like

Posted 19 July 2012 - 06:25 PM

It can be done, but HTTP is not good protocol for networking games, because running apache and php script is lower than running small C++ program with TCP or UDP sockets. HTTP also has much bigger package overhead than TCP and UDP. TCP still has bigger overhead than UDP.

#3 hplus0603   Moderators   

11125
Like
1Likes
Like

Posted 20 July 2012 - 04:05 AM

For one "share" per minute, Apache+PHP will do fine. If you get hundreds of millions of users, it would even do fine, with some modifications.

enum Bool { True, False, FileNotFound };




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.