2D basic map system
- by Cyril
i'm currently coding a 2D game in Java, and I would like to have some clues on how-to build this system :
the screen is moving on a grander map, for instance, the screen represent 800*600 units on a 100K*100K map.
When you command your unit to go to another position, the screen move on this map AND when you move your mouse on a side or another of the screen, you move the screen on the map.
Not sure that i'm clear, but we can retrieve this system in most RTS games (warcraft/starcraft for example).
I'm currently using Slick 2D.
Any idea ?
Thanks.