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 4 of 4

Thread: Website Games

  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts

    Website Games

    I have a website and I am looking at putting a few quality games on it. I was thinking an online poker game, rpg, and a few others... I want a gooed mix of games put again I am not a gaming website. The main feature that I am trying to get is that when a customer of the site plays the games I would like them to earn credits. The customer at the end of the month with the most credits will receive a cash prize. Also maybe we could have a leaderboard or something too so that other customers can see that it is actually legit. If you have any resources thath you can think of or you know of something fairly close to what I am talking about please let me know.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    What you require can only be done with server-side coding, not JavaScript.

    It is your responsibility to die() if necessary….. - PHP Manual

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    Ok... thanks... I figured that but I just wasn't sure... Mods Please Close Threads

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    More accurately, the actual gameplay would be via JavaScript, but coordinating between multiple players, keeping track of "points", awarding monthly prized, et al., has to be done server side. Could be PHP or JSP or ASP or ASP.NET or or or...

    However, to be a really effective multiplayer game--such as the big sites use--you probably would *not* want to use browser-based code. I created a poker game, for example, and it worked via the browser. But the response time is nowhere near as good as, say, PokerStars.net, because they make you download a custom program to your machine. And they can handle thousands of games per minute, whereas mine using an ASP server engine would have been struggling to handle more than maybe a dozen simultaneous games.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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