#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0

    Simple Texted Based Game


    hey everyone

    i have just started learning php and i was wanting to make a simple texted based game to start out with.

    i have got a plan and things all plotted out.

    i was just looking to see what kind of info i could come up with and see if php would be good to make a texted based game with.

    plz feel free to share you comments and what ever else you have to say.
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,821
    Rep Power
    637
    If you want to make it work in a browser any server side language should work, if you know PHP already then ya use it.

    If it's not for the browser, PHP can work but another language may be easier.
  4. #3
  5. Banned

    Join Date
    Jul 2004
    Location
    The Mews At Windsor Heights
    Posts
    5,326
    Rep Power
    0
    Here's some PHP Game sites - some are open source scripts so you can see how they work etc.

    http://php.resourceindex.com/Complete_Scripts/Games/

    http://www.php-editors.com/games.php
  6. #4
  7. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,628
    Rep Power
    6086
    Sure, PHP is fine for a text-based game, especially for the oh-so-popular text-based RPGs. I think most pet sites are written in PHP, as are most turn-based games.

    Comments on this post

    • chadsmith729 agrees : Hi Gimp!
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2007
    Location
    Cumberland Md
    Posts
    3
    Rep Power
    0
    PHP is a decent choice for a language if its web browser based, im currently working on my own web page based RTS in php/mysql which currently can be played, ive put about 3 months into it so far, and php has been able to do (with light javascript) everything that i would pretty much need, though after you become more familiar with PHP i would recommend getting some javascript or AJAX down to help

    Comments on this post

    • chadsmith729 agrees : Yep, that's what I would do.
  10. #6
  11. I fail at spelling
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Sep 2003
    Location
    NDAuNjIxMTExLC03OS4xNTU=
    Posts
    3,219
    Rep Power
    1776
    Yeah, doing something with AJAX is pretty much what you gotta do. That way it looks streamless.

    Now, if you want something that REALLY screams use Flash with PHP .... that way you can track everything and have the great look to it.
    I am working now with Symfony2, Twig, Doctrine, Composer, Assetic, and HTML5. Enjoying doing what I do everyday!
  12. #7
  13. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,628
    Rep Power
    6086
    I fail to see the point of a text-based game + flash...
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents

IMN logo majestic logo threadwatch logo seochat tools logo