You would have to change the World Loader and the Player creation in your Gamestate class
public GameState(Handler handler) {
super(handler);
world = new World(handler, "res/worlds/world1.sjw");
handler.setWorld(world);
player = new Player(handler, handler.getWorld().getSpawnX(), handler.getWorld().getSpawnY());
}
private void loadWorld(String path) {
String file = Utils.loadFileAsString(path);
String[] tokens = file.split("\\s+");
width = Utils.parseInt(tokens[0]);
heigth = Utils.parseInt(tokens[1]);
spawnX = Utils.parseInt(tokens[2]) * Tile.TILEWIDTH + (Tile.TILEWIDTH / 4);
spawnY = Utils.parseInt(tokens[3]) * Tile.TILEHEIGHT + (Tile.TILEHEIGHT / 4);
tiles = new int[width][heigth];
for(int y = 0; y < heigth; y++) {
for(int x = 0; x < width; x++) {
tiles[x][y] = Utils.parseInt(tokens[(x+y*width) + 4]);
}
}
}
With this code, you can have for example the numbers 3 and 3 in your world file and the player will spawn at your 3 tile.