Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    64
    Thanks
    5
    Thanked 0 Times in 0 Posts

    What server(Linux or ASP or ?) for online game

    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.

    Thanks

    chaser

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    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.

  • #3
    Banned
    Join Date
    Jun 2007
    Location
    Web Designer
    Posts
    321
    Thanks
    0
    Thanked 6 Times in 6 Posts
    There are 2 kind of server linux/windows, ASP.NET will work only in windows server.

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,620
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Quote Originally Posted by it career View Post
    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).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    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!
    Last edited by Antoniohawk; 06-25-2007 at 10:31 PM.
    Omnis mico antequam dominus Spookster!

  • #6
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •