Sign in to follow this  
ssdko2009

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

Recommended Posts

ssdko2009    145
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?

Share this post


Link to post
Share on other sites
VildNinja    789
[quote name='ssdko2009' timestamp='1306539461' post='4816614']
Does anyone know to do to set the (x,y) of the top left corner of the map is basically I'm asking?
[/quote]


[size="2"]I found this [url="http://www.tilemap.co.uk/zipfiles/mapjvr6.zip"]http://www.tilemap.co.uk/zipfiles/mapjvr6.zip[/url] on this site [url="http://www.tilemap.co.uk/mappy.php"]http://www.tilemap.co.uk/mappy.php[/url] 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[/color]() looks like some thing, that could help increase performance, by only drawing the visible parts of the map.[/font][/size]
[size="2"][font="Arial"]
[/font][/size]
[size="2"][font="Arial"]Also who puts a background like that on a website.[/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this