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:
Jason Long 2014-06-16 20:38:30 -04:00
parent c0f1d6a486
commit f4fdb09481
2 changed files with 2 additions and 8 deletions

View file

@ -94,7 +94,7 @@ public class OverlayMapView extends JComponent
repaint();
}
static BufferedImage tileArrayImage = loadImage("/tilessm.png");
static BufferedImage tileArrayImage = loadImage("/sm/tiles.png");
static final int TILE_WIDTH = 3;
static final int TILE_HEIGHT = 3;
static final int TILE_OFFSET_Y = 3;

View file

@ -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();
}