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
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
- Java multiplayer cards game
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