SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where do I start?

    Hi

    I'd like to create my own online text turn-based strategy game (similar to http://games.swirve.com/earth/). This will be one of my summer projects.

    The problem is that I've never programmed anything in my life.

    1) Do you think PHP would be the best language? I've read the pro/cons on several sites, and PHP looks the best, but Earth2025 (one of the most popular) is programmed in CGI.
    2) Can anyone suggest a beginner's book that will teach me everything I need to know to program the game?
    3) Do you think there is a chance that I could finish the game by the end of the summer?

    Thanks for the help

    Alex

  2. #2
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    1) PHP would have more than enough functionality to do this
    2) Link to a book. I reckon a game like this would be very heavily database-centered and this book should cover all the basics.
    3) You could have it done by the end of summer (stupid Americans, it's winter here ) if you plan it right and don't keep having to go back and fix mistakes.

    This kind of thing is probably a little big as a first project but you can still do it, PHP is a suprisingly simple language to pick up and once you have your database knowledge down, it shouldn't be much of a problem. I just strongly recommend you plan your database very well, ask around here for tips because that could be the difference between normal times and like 2 mins loading time per page

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks DJ.

    Do you think that a book is necessary, or can i just use online tutorials?

  4. #4
    SitePoint Wizard gold trophysilver trophy
    Join Date
    Nov 2000
    Location
    Switzerland
    Posts
    2,479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Certainly PHP is a good choice (it will certainly be fast than a site using CGI). There's a number of popular games, such as Imperial Conflict running with it very successfully.

    There's even a couple of examples on Hotscripts that might help get you started;

    http://www.hotscripts.com/Detailed/7933.html
    http://www.hotscripts.com/Detailed/5935.html

    It's certainly a fascinating project; online games place some unusual requirements on an applications design and can teach you things you'd otherwise have to work at Amazon to learn.

  5. #5
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HarryF
    online games place some unusual requirements on an applications design and can teach you things you'd otherwise have to work at Amazon to learn.
    Could you elaborate?

  6. #6
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As a programming beginner, PHP is definately the easier choice when compared to CGI, at least in my opinion (of course, I've only dabbled in CGI a bit, so don't take my word for it ). And it more than meets the requirements you'd need for an online game.

    I really wouldn't even suggest a book really unless you need documentation away from a computer with internet access. PHP has very good documentation and tutorials online anyway.

    Plus, HarryF is right. Because you're making an online game, it has very special requirements and techniques you have to learn in order to make your program work well. Translation: This project will probably teach you some very interesting things about making PHP scripts.

    Good luck!

  7. #7
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just bought "PHP and MySQL Web Development, Second Edition" off amazon.com for $35. Kevin Yank's book was critisized for being too short (200 pages and the price being $35) and just being a tutorial (NO INDEX!)

    At first I was unsure of buying a book when there are a ton of tutorials online, but then I remembered how I learned HTML. Its hard for me to read long articles on the web - I usually skim. Also, $35 isn't that much considering that's less than what a professional programmer would charge per hour.

    Could you guys briefly elaborate on the special challanges I will face? I don't know a single command yet, but this project really intrigues me. While I'm waiting for the book to arrive I'll probably come up with some gameplay mechanics and some formulas.


Bookmarks

Posting Permissions

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