Results 1 to 3 of 3
  1. #1
    alaskatroll is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Question An object that represents a map of lines?

    Hi guys! I have a sort of complicated question, having to do with graphics.

    I'm developing an application in which the user imports image files and designs a basic side-scrolling game-like environment out of them. my idea is to have them be able to import the images, resize/arrange them as needed, and then draw the boundary lines on top of the image. so i need to create the BoundaryMap class that represents the map of boundary lines which corresponds to the map of images. my questions are:

    - does anyone know where i can find a good tutorial on using mouse input to create line objects? ideally it would involve either a series of clicks to do one straight line at a time, as well as the user being able to click and drag to render a curve. also, i hope to include an erase function as well.

    - i need general advice on how to set it up for efficient collision-detection, as well as generally how to set up the collision detection with this kind of data. Anyone know a good tutorial for this?

    - my plan is to consolidate all of the drawn boundary lines into one object, which serves as an instance variable in a class for objects which represent individual zones. I'm assuming all i have to do is use an ObjectOutputStream in the editor class to store the data from their mouse input as a BoundaryMap object, then use an ObjectInputStream to load that object when a user enters the zone, as well as when a user re-opens it in the editor. Is there anything i need to take into consideration when doing this?

    thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,406
    Rep Power
    20

    Default Re: An object that represents a map of lines?

    Moved from Advanced Java. Not an advanced topic anyways.

    You didn't return to the first thread you started, not even to thank SerbianSergeant for the links. Are we going to see better behavior this time round?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    alaskatroll is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Re: An object that represents a map of lines?

    whoops, sorry. thanks for moving this into the correct thread.

Similar Threads

  1. Replies: 3
    Last Post: 10-25-2011, 06:29 PM
  2. Cannot Add new Lines
    By capjoel in forum New To Java
    Replies: 3
    Last Post: 04-01-2011, 06:33 PM
  3. Replies: 1
    Last Post: 02-02-2011, 06:11 PM
  4. What do these lines mean?
    By coding in forum New To Java
    Replies: 5
    Last Post: 02-02-2011, 03:01 AM
  5. Class Time - represents time of day
    By verbazon in forum New To Java
    Replies: 1
    Last Post: 04-13-2009, 01:06 AM

Tags for this Thread

Posting Permissions

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