Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By Tanaris
  • 1 Post By JosAH

Thread: Where to start?

  1. #1
    Tanaris is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default Where to start?

    Hi, I'm new to the forums. I am currently teaching myself Java and have no previous programming experience. I still have ALOT to learn but I had more of a general question.

    How do you decide where to start writing your program?

    I have a game concept I would like to eventually realise but, once I actually know enough java to start, what is a good point to start?

    Start where the player would start? Start with random classes I know I will need? Start with a small but functional part of the game you could start testing soon?

    How do you go about your projects?

    Any advice would be much appreciated.

    Thanks!
    qwerty53 likes this.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,776
    Blog Entries
    7
    Rep Power
    21

    Default

    Try the CRC way (Classes, Responsibilty and Collaboration); first write down the details of your game in plain English (or whatever natural language). The nouns in your story make up your first notion of the classes in your application. The verbs are a rude indication of the methods; now try to play a game in your head, given those nouns (class objects) and verbs (the methods). Refine whenever and whereever needed. Finally you have quite a detailed design of your game and you can start writing code for it ...

    kind regards,

    Jos
    qwerty53 likes this.
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Tanaris is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default

    Wow thanks for the super fast reply and great info!

    Makes total sense. Much appreciated! :)

  4. #4
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    Indeed, also I like to make flow charts about how the program will run. For a game of course you would go through all the different things that could happen. That way you have a good idea of what order you should place things. If you have a turn based game, then make a flow chart showing all the possible outcomes of what could happen in a turn.

    This combined with JosAH's advice will really get your program flowing nicely. There have been times where I'm writing a program, forget where I'm going with it, refer to my notes and then realize that I was wandering aimlessly into the realm of useless coding.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

Similar Threads

  1. Where to start - GUI
    By matejm1994 in forum New To Java
    Replies: 2
    Last Post: 01-30-2011, 06:02 PM
  2. Replies: 1
    Last Post: 01-18-2011, 07:27 PM
  3. Replies: 5
    Last Post: 03-20-2009, 11:04 PM
  4. Where to start?
    By McChill in forum New To Java
    Replies: 5
    Last Post: 02-19-2009, 03:26 PM
  5. Web Start
    By DannyZB in forum NetBeans
    Replies: 0
    Last Post: 11-14-2008, 01:58 PM

Posting Permissions

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