View Full Version : What server(Linux or ASP or ?) for online game

06-17-2007, 03:12 PM
I want to create an online co-operative tetris like game where both players are playing simultaneously. What server would be best for such? A linux server where PHP can be used, a .jsp server , a .asp server.

You probably can tell Im a noob in that regards. I have the name for my online game but before I get hosting i need to know what type of server(language server is running) is best.



06-18-2007, 08:10 PM
It is unlikely that you will be able to do this kind of thing in asp, asp.net, jsp, php etc. You could do it with a bit of clever AJAX but you would probably need java or flash to achieve a game running well at good enough speeds for tetris. If you use flash or java then it does not matter whether your server is apache or iis, linux or windows, php or asp .. etc.

If you use a windows iis server, you can install asp, asp.net, jsp and php on it. If you use a linux server you probably won't be able to use asp and asp.net (well there's chillisoft and mono etc, but I have never tried to use either of them). iis is not completely free (comes free with xp pro, 2000 and 2003 server, but those you have to buy, if you already have them you could call it relatively free). Linux servers are free but won't be able to run as many types. You will also need to know how to use linux, and that can take a while for a beginner who has only used windows.

Free things like php, apache web server, mysql etc tend to be able to run on windows, wheras microsoft software such as iis, asp, asp.net don't tend to be able to run on linux. I prefer running a windows server and installing more on it.

it career
06-20-2007, 08:27 AM
There are 2 kind of server linux/windows, ASP.NET will work only in windows server.

06-20-2007, 10:48 AM
There are 2 kind of server linux/windows, ASP.NET will work only in windows server.

The two main types of web server are Apache which runs on Linux or Windows and IIS which only runs on Windows. You can run CGI or ASP.NET on either depending on which you install but CGI is built into Apache and .NET is built into IIS. You can then run any language that the system supports and has installed (eg. PHP, PERL, Python, Ruby etc for CGI or JScript, VBScript etc for .NET).

06-20-2007, 05:40 PM
As simple as tetris is to build, if you aren't sure about how you are going to go about it I think you're probably about to jump into more than you can probably handle.

Perhaps you should start with a simple standalone tetris game first before attempting to make a co-op version. The main problem is that browsers aren't particularly suited to this sort of thing, tetris will require real time streaming of data to and from each browser - wherein lies your major obstacle.

I would recommend perhaps a separate client written, you can certainly still have a web based element for it: user accounts, high scores, chat rooms and such- you could even stream delayed video casts of user games if you were clever enough.

[ot:] Hey (felgall), another Aussie - and from Sydney too!

06-21-2007, 08:59 PM
Yea this would be hard enough to do for a beginner using pygame or SDL in single player, let alone in a browser, let alone multiplayer.