Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Advice on map scrolling?  (Read 917 times)
0 Members and 1 Guest are viewing this topic.
Offline jessewclark

JGO n00b
*

Posts: 38


Heaven means muzak.


« on: 2004-02-01 16:58:30 »

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.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.12 seconds with 20 queries.