2D Map question

Hi, I would like to know that how do I make my camera moving along a 2D map which is larger than my screen size? e.g. Age of King, Starcraft. Am I moving the center point of my screen to the coordinate my mouse clicked?

Many thanks. ???

Check out the games Warp and Urbanoids on http://www.javaonthebrain.com. They describe the way their scrolling algorithms work and have source code.

In general, you need to search for “scrolling maps”, “tiles”, and maybe “isometric”. I’m sure you’ll be able to find some tutorials, even if they are for C or C++…

from, Stefan