Results 1 to 6 of 6
  1. #1
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default programming a game - how should I begin

    I'm not exactly new to Java but I'm venturing into new Java territory, and so I'm hoping to get some expert advice on how to start my project off on the right foot (if this is considered the wrong section to post this, I apologize and please move it).

    I plan to make an online game. I'm going to use swing, GUIs, and a lot of graphics. It's going to be a simple 2D game in which you're a guy in a maze and you have to get through it in a timely manner. I would like some advice on how to begin building the infrastructure for this.

    More specifically, I have the following question:

    1) I'm torn between making it into a JApplet or a downloadable application that runs automatically once downloaded (I forget what this is called but I've seen it done). Which would you say is best for my purposes (i.e. programming a 2D game in swing)?

    2) How much effort should I invest into concurrency? Could I get by making the whole game run in a single thread... or would that be 'bad'?

    3) Should I work within NetBeans or would it be better to work from scratch in some kind of text editor like Notepad? I would think NetBeans is better for programming any kind of application, but I'm just wondering if it's suited to my particular purposes (game programming, 2D graphics, being online, etc.).

    Also, it might be important to mention that if I can develop this far enough, I might incorporate the ability for the player to save his progress. In other words, I might want to manage a database or file system on the server that stores players' accounts and progress, etc. This would require some kind of client/server interface, and so my program would have to be compatible with this (I don't know if that makes a difference to the above questions but I thought I'd throw it out there just in case).

    Thanks very much for any forthcoming advice.


    Gibran

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default

    Yes, you caught me in a crosspost. Is that considered bad edicate??? I figured I was just trying to maximize the number of responses I got. I didn't think I was doing any harm (I can see people getting annoyed at duplicate posts in the same forum, but across different and presumably unrelated forums, I didn't think anyone would care - in fact, I thought it would only help others searching for similar information).

    If this is bad, I sincerely apologize and won't do it again.

  4. #4
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    4

    Default

    JavaRanch states the issue best, I believe. Please have a look here: Be Forthright When Cross-Posting To Other Sites

  5. #5
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Just imagine I had written a lengthy reply here and later found out that you got the same reply in the Sun forums. I'd be really pissed and angry about the wasted time.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  6. #6
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default

    Quote Originally Posted by curmudgeon View Post
    JavaRanch states the issue best, I believe. Please have a look here: Be Forthright When Cross-Posting To Other Sites
    Thanks curmudgeon, that helps - and thanks for being understanding.

    Quote Originally Posted by PhHein
    Just imagine I had written a lengthy reply here and later found out that you got the same reply in the Sun forums. I'd be really pissed and angry about the wasted time.
    Okay, I can appreciate that. No harm intended.

    I will be sure to be up front about my crossposting in the future (I'm glad there is a way of doing it while maintaining neticate :)).

    ...Oh, and if anyone's still interested in answering my original questions, I'm all ears.

Similar Threads

  1. Programming a Board Game
    By makanti in forum New To Java
    Replies: 7
    Last Post: 03-10-2009, 02:32 AM
  2. The words *game* in java programming :confused:
    By ibmzz in forum Advanced Java
    Replies: 1
    Last Post: 01-23-2008, 09:23 AM
  3. Programming a Game?
    By gt123 in forum New To Java
    Replies: 4
    Last Post: 01-01-2008, 12:41 PM
  4. java game programming
    By gammaman in forum New To Java
    Replies: 1
    Last Post: 12-25-2007, 01:01 AM
  5. Replies: 1
    Last Post: 08-07-2007, 05:19 AM

Posting Permissions

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