graphics: change where images are loaded from when running the gui
tiles.png used to be at the root of the jar, now it is in the '16x16' subdirectory (or '32x32' or '8x8' or 'sm' depending on what resolution is being loaded)
This commit is contained in:
parent
c0f1d6a486
commit
f4fdb09481
2 changed files with 2 additions and 8 deletions
|
@ -29,13 +29,7 @@ public class TileImages
|
|||
this.TILE_WIDTH = size;
|
||||
this.TILE_HEIGHT = size;
|
||||
|
||||
if (size != 16) {
|
||||
this.images = loadTileImages("/tiles_"+size+"x"+size+".png", size);
|
||||
}
|
||||
else {
|
||||
this.images = loadTileImages("/tiles.png", 16);
|
||||
}
|
||||
|
||||
this.images = loadTileImages("/"+size+"x"+size+"/tiles.png", size);
|
||||
loadSpriteImages();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue