private static World2 createNewWorld() { long seed = System.currentTimeMillis(); TileFactory tileFactory = TileFactoryFactory.createNoiseTileFactory( seed, Terrain.GRASS, Constants.DEFAULT_MAX_HEIGHT_1, 16, 24, false, true, 20, 1.0); World2 world = new World2(seed, tileFactory, World2.DEFAULT_MAX_HEIGHT); Dimension dim0 = world.getDimension(0); for (int x = -2; x <= 2; x++) { for (int y = -2; y <= 2; y++) { dim0.addTile(tileFactory.createTile(x, y)); } } return world; }