Jump to content
  • Advertisement
Sign in to follow this  
Epic Zombie

MySQL and PHP for multiplayer game

This topic is 2334 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!