My game has a map that needs to scroll left and right. Not like a side-scrolling game, where different scenery scrolls on screen, but like a Civ-type game, where I’m representing a globe that has to scroll around and around, both left and right.
I might (might) be able to figure out how to do this if all I had to worry about was the map image, but it’s a little more complicated than that. The map also has a hexagon grid drawn on top of it, and each hex is a separate GeneralPath shape, and mouse-clicks are detected by what shape they happen in. Now, when the map scrolls, some hexes will always need to be partly on one side of the screen, and partly on the other. How do I handle that?
Help will be greatly appreciated.