for y in range(100): ty = int(Math.random() * len(splitTiles)) tx = int(Math.random() * len(splitTiles[ty])) cell = Cell() cell.setTile(StaticTiledMapTile(splitTiles[ty][tx])) layer.setCell(x, y, cell) layers.add(layer) self.renderer = OrthogonalTiledMapRenderer(self.map) def render(self): Gdx.gl.glClearColor(100.0 / 255.0, 100.0 / 255.0, 250.0 / 255.0, 1.0) Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT) self.camera.update() self.renderer.setView(self.camera) self.renderer.render() self.batch.begin() self.font.draw(self.batch, 'FPS: ' + str(Gdx.graphics.getFramesPerSecond()), 10, 20) self.batch.end() if __name__ == '__main__': config = LwjglApplicationConfiguration() config.width = 640 config.height = 480 config.title = 'Tiled Map Bench Test' config.forceExit = False LwjglApplication(TiledMapBench(), config)