The Limitations of PHP

You may or may not know that the Bunnies game server is written in PHP. The reason for that choice was simple: I didn’t care to figure out how to get C# to work with MySQL. That and I could just copy existing PHP code from the web-site and use it in the game server. It may be the fact I’m trying to run the game server and two game instances on the same 1.7Ghz system but I’m willing to wager that PHP is not cut out for multiplayer game servers.

I had to cut down position,angle,velocity notifications down to half second intervals just to keep the server from choaking on the messages. One thing is certain though, the Bunnies client supports multiplayer. The next step is to rewrite the game server in C# so it can support more than 2 players at the same time.

Initially all other game entities will be handled on the client side. So player 1 and player 2 will see each other and get each others messages if they’re in the same map but they’ll be going after two separate sets of enemies.

Once two clients can interact smoothly through the server then it will be time for customizing player avatars and other more advanced features.

Leave a comment

You must be logged in to post a comment.

ss_blog_claim=70b9168863fc97c91e6d88b40542a327 ss_blog_claim=70b9168863fc97c91e6d88b40542a327