24252627282930313233
public void setTileSize(int tileSize) { this.tileSize = tileSize; } public void load(String fileName) { Texture level = Texture.load(fileName); tiles = level.getPixels(Texture.FORMAT_RGB); width = level.getWidth(); height = level.getHeight(); }