Jump to content

  • Log In with Google      Sign In   
  • Create Account


MySQL and PHP for multiplayer game


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   -  Reputation: 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.

Sponsor:

#2 TMKCodes   Members   -  Reputation: 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   -  Reputation: 4979

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.



PARTNERS