2
\$\begingroup\$

I am looking to create a multiplayer browser based game, similar to tribal wars and such, and i'm trying to think of better ways of handling the server, for example when troops and buildings are completed and the landing of troop movements

\$\endgroup\$
  • \$\begingroup\$ How are you storing your data? Does it live in ram, a database, or what? \$\endgroup\$ – Seth Battin Nov 1 '12 at 4:07
  • 1
    \$\begingroup\$ What's your actual question? What problem specifically are you trying to solve? Your question is pretty broad and vague as it is. \$\endgroup\$ – MichaelHouse Nov 1 '12 at 16:18
  • \$\begingroup\$ It will be stored in a database \$\endgroup\$ – Craig Weston Nov 1 '12 at 16:42
  • 1
    \$\begingroup\$ Ways which are better than what exactly? What did you try and in what regard did it fail to fulfill your requirements? \$\endgroup\$ – Philipp Nov 1 '12 at 19:55
7
\$\begingroup\$

Tribal Wars is a browser-based, massive multiplayer online real time strategy game, set in the Middle Ages.

Now Tribal Wars is a browser based game and was released in 2003 as a text based game.

Browser-based games usually rely on some kind of server-side code, such as Perl, PHP, Ruby, Python, or Java; though some will use technologies like Flash, ActiveX, and Java applets to store data on the client's computer.

Unlike a stand-alone client or video game, being confined to a browser limits to some degree the extent to which 3-D rendering can be supported.

The following resources may help you

Basic Guideline

HTML5

Flash

Java

Community Resources

EDIT :

better ways of handling the server, for example when troops and buildings are completed and the landing of troop movements

You should have persistent connection with server as every connection takes time for extra resource, Point-to-point connection, Low latency for better interaction.

It varies from platform to platform. For example, for browser game tribal wars used the followings

  • Server End Code # PHP, Some Java
  • Server # Amazon: EC2, CloudFront, S3, Hadoop/Elastic Map Reduce, Hive, some SQS, some SimpleDB
  • Load Balancing # HAProxy
  • Sharded, Blob Storage # MySQL
  • Point-to-point connectivity # YAMI4
  • Low latency # YAMI4
\$\endgroup\$
  • \$\begingroup\$ Everything on client side i know how to do, its just the best way to get the server to run the events such as building completed, adding troops, attacks, and so forth \$\endgroup\$ – Craig Weston Nov 1 '12 at 11:35
  • \$\begingroup\$ @CraigWeston, it depends on which platform do you want to use. It varies platform to platform. \$\endgroup\$ – Md Mahbubur Rahman Nov 1 '12 at 12:40
  • \$\begingroup\$ @CraigWeston, I have edited my answer regarding "the best way to get the server to run the events such as building completed, adding troops, attacks, and so forth". Thanks for comment. :) \$\endgroup\$ – Md Mahbubur Rahman Nov 1 '12 at 12:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.