Results 1 to 5 of 5
  1. #1
    matt123337 is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default Need help with a project...

    Hey all, I'm still pretty new to Java, and I need some help... I'm making a simple maze game in an applet, and I need some help making the computer calculate a the correct path. The "Map" is realy simple (a Two-dimensional array) and it's ordered kinda like:
    Java Code:
    00000
    12220
    00020
    00220
    02200
    32000
    00000
    1 = entrance
    2 = path
    3= exit

    I don't actually use integers tho. I use the class below

    Java Code:
    public abstract class GameObject{
    
    public abstract int getID(); // Planing to use it so it can get the images (HashMap)
    
    public abstract boolean canWalk(); // if you can walk on it or not
    
    public abstract Image getPaintImage(); // for painting the object (I pan on doing a better way later)
    
    }
    Last edited by matt123337; 08-23-2010 at 11:49 PM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    I need some help making the computer calculate a the correct path
    What is your question?
    Are you having problems with your code?
    Please post the full content of the error messages you have questions about.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I agree with Norm. All I see is, "here is my assignment". Without a specific question (and the more specific the question, usually the more helpful the answer) about all we can do is direct you to the tutorials.

    Luck.

  4. #4
    matt123337 is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default

    Just ignore this thread I got it working :p

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

Similar Threads

  1. Adding a project to an existing project
    By Seijuro in forum NetBeans
    Replies: 4
    Last Post: 08-08-2010, 10:15 AM
  2. Project Help
    By jschmall12 in forum New To Java
    Replies: 2
    Last Post: 04-28-2010, 05:20 AM
  3. Help with a project
    By Mike_H in forum Advanced Java
    Replies: 1
    Last Post: 04-21-2010, 08:31 AM
  4. open existing project project ..
    By itaipee in forum Eclipse
    Replies: 1
    Last Post: 12-28-2008, 08:12 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
  •