[java] Specifying Java Mappy (x,y) position

Started by
0 comments, last by VildNinja 12 years, 11 months ago
I've have some code that uses javamappy to load and display a map made with Mappy (Mapwin32) and I want to specify the x,y cordinates (realitive to the window) of where the map is drawn. Mostly this has been unsuccesfull. I have for the time being created a workaround using the translate function of the supplied Graphics2D in my draw function. But this isn't really what I want as I want to specify the true (x, y) and Java Mappy's documentation has been less then helpful.

Does anyone know to do to set the (x,y) of the top left corner of the map is basically I'm asking?
Advertisement

Does anyone know to do to set the (x,y) of the top left corner of the map is basically I'm asking?



I found this http://www.tilemap.co.uk/zipfiles/mapjvr6.zip on this site http://www.tilemap.co.uk/mappy.php If you lookup the class Mappy in the Java doc, it seems to have just the methods you are looking for: setX() and setY().. Also[font="Arial"] [color="#000000"]setScreenDimensions() looks like some thing, that could help increase performance, by only drawing the visible parts of the map.[/font]
[font="Arial"]
[/font]
[font="Arial"]Also who puts a background like that on a website.[/font]

This topic is closed to new replies.

Advertisement