Map-Camera

Hi,

how do i realize the scrolling of a tiledmap with SLICK ?
I´ve heard about a camera something like this.

The problem is the movement of the units and the rendering of the map which is bigger than the window.

Thanks in advance.

Tiaclagear

I am going to assume you are asking how to make a scrolling map. I had mnay troubles with this.

check out this code, it is some example code Kev made:

https://bob.newdawnsoftware.com/repos/slick/trunk/Slick/src/org/newdawn/slick/tests/StateBasedTest.java

summary:

you have to move the tiledmap (assuming you use one). And translate the graphics. the exact way to do it is int eh code.