I’m trying to scale the map to cover the whole screen, without adding more tiles, I would like to have it scaled 3x, I’m using slick library, extending StateBasedGame, I couldn’t find anything in the docs, and im not to sure as to how to write the method, THX
@Override
public void init(GameContainer container, StateBasedGame game)
throws SlickException {
currentRoom = HouseMap.ROOM_1;
map = new TiledMap(Utils.getMapFile(currentMap));
}
@Override
public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
map.render(xMargin, yMargin, bgLayer);
map.render(xMargin, yMargin, lowerFringeLayer);
map.render(xMargin, yMargin, fringLayer);
map.render(xMargin, yMargin, upperFringLayer);
}
@Override
public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
switch (currentRoom) {
case ROOM_1:
currentMap = "Room1";
break;
default:
break;
}
}
the map has 16x16 tiles, and is 25 tiles wide and high, my Screen is 800x600, and i would like to stretch it so about 7 tiles are rendered stretched to cover the screen.