}
@Override
public void initStatesList(GameContainer container) throws SlickException {
World gameWorld = new World(0, container);
// make the world a bit bigger than the screen to force camera scrolling
gameWorld.setWidth(2000);
gameWorld.setHeight(2000);
// create player
TopDownActor player = new TopDownActor(400, 400, "data/link.png");
// create sword relative to player
Sword sword = new Sword(player.x, player.x, "data/sword.png", player);
// create temple
StaticActor temple = new StaticActor(150, 150, 48, 48,
"data/tiles.png", 0, 6);
// add entities
gameWorld.add(player);
gameWorld.add(temple);
gameWorld.add(sword);
// set screen camera to follo player
gameWorld.setCamera(new Camera(gameWorld, player, container.getWidth(),
container.getHeight(), container.getWidth() - 100, container
.getHeight() - 100, player.mySpeed));
ME.world = gameWorld;
addState(gameWorld);