Results 1 to 3 of 3
- 04-16-2012, 08:35 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
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.
- 04-16-2012, 10:52 PM #2
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?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-18-2012, 02:38 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
I need to truncate a file with 10 or more lines, to 10, removing the first lines
By sledjama in forum New To JavaReplies: 3Last Post: 10-25-2011, 06:29 PM -
Cannot Add new Lines
By capjoel in forum New To JavaReplies: 3Last Post: 04-01-2011, 06:33 PM -
Insert class file as object in a table & read the object from the blob.
By facemeguru in forum New To JavaReplies: 1Last Post: 02-02-2011, 06:11 PM -
What do these lines mean?
By coding in forum New To JavaReplies: 5Last Post: 02-02-2011, 03:01 AM -
Class Time - represents time of day
By verbazon in forum New To JavaReplies: 1Last Post: 04-13-2009, 01:06 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks