Jump to content
  • Advertisement

How to create a map like in Paradox Games? (not gfx or visual or design problem)

Recommended Posts

Posted (edited)

So, I'm working on a grand strategy game what plays in the first and seconds World War. I use Java and Swing. (I want to keep Java but maybe I'll rewrite it with libgdx.)

Now, I have a map, what you can move, you can zoom on it, but when you reach the end on the left or right, I want to paint again the map. (So if you reach the end of west, the map will show east.)

I thaught about what if you draw a cylinder wall, move that and zoom on that, but I don't know how to do that.

I tried with draw 3 map and try to keep the camera on the middle but that ate my processor.

(Sorry if I have chosen the wrong forum, but I couldn't decide which one I should pick.)

Edited by FiveShipHUN

Share this post

Link to post
Share on other sites

Hi there,

I would suggest implementing a wrap around algorithm for your map. Basically, all you need is to check the bounds of your map with the camera render area to determine if you need to wrap around.

I found this link which provides an implementation to help you figure it out for your game map.

Hope it helps.

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!