Jump to content
  • Advertisement
Sign in to follow this  
ssdko2009

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

This topic is 2611 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!