Hi, this is my first post on here :-)
So, I've been discussing with a friend of mine about making a client-server web-based game, and I'm looking for some advice. The game would be a fairly simple 2D turn-based game, similar to a board game, which two people would play through the website. Here are my specific questions:
- I know this is fairly broad, but is there any recommended language for coding the server part? I've read that it could probably be just about anything, but I was thinking of using Java, so it could easily be run on either a Windows or Linux machine. Would that make sense?
- What is the best way of allowing the server to handle multiple games being played at the same time? I was initially thinking of having one central server process, which could 'spawn' a separate 'game server' process for each game on demand. But maybe that is unnecessary? Would it be easier to create multiple threads (for each game) in the same server process? We don't anticipate many more than about 30-40 games going on at once.
- For the web client, ideally we want to allow the playing 'board' graphic to be scalable, so it can be scaled automatically to fit any window/screen size (tablets, etc.). What is the best way to handle that? Can it easily be done with raster graphics, or is it better to use 100% vector? I have heard that the HTML5 Canvas might have some useful functionality - would anyone recommend using it?
As you can probably tell, I don't have much experience of writing client-server applications. If anyone can point me to any good online articles that might help, it would be much appreciated! :-)