2D basic map system
Posted
by
Cyril
on Game Development
See other posts from Game Development
or by Cyril
Published on 2011-06-02T16:23:15Z
Indexed on
2012/09/05
15:52 UTC
Read the original article
Hit count: 299
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.
© Game Development or respective owner