@@ -0,0 +1,801 @@
+package me.shzylo.mansionazazelvisual.gfx;%0A%0Aimport java.awt.image.BufferedImage;%0Aimport java.io.IOException;%0A%0Aimport javax.imageio.ImageIO;%0A%0Apublic class SpriteSheet %7B%0A%0A  private String path;%0A%09public final int SIZE;%0A%09public int%5B%5D pixels;%0A%0A%09public static SpriteSheet tiles = new SpriteSheet(%22/sheets/tiles.png%22, 256);%0A%09public static SpriteSheet player = new SpriteSheet(%22/sheets/player.png%22, 96);%0A%0A%09public SpriteSheet(String path, int size) %7B%0A%09%09this.path = path;%0A%09%09SIZE = size;%0A%09%09pixels = new int%5BSIZE * SIZE%5D;%0A%09%09load();%0A%09%7D%0A%0A%09private void load() %7B%0A%09%09try %7B%0A%09%09%09BufferedImage image = ImageIO.read(SpriteSheet.class.getResource(path));%0A%09%09%09int w = image.getWidth();%0A%09%09%09int h = image.getHeight();%0A%09%09%09pixels = image.getRGB(0, 0, w, h, null, 0, w);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create SpriteSheet.java