public static void loadSpriteSheet(String name, String path, int xFrames, int yFrames) {
        BufferedImage sheet = ProjUtils.readImage(path);
        int spriteWidth = sheet.getWidth()/xFrames;
        int spriteHeight = sheet.getHeight()/yFrames;

        for (int x = 0; x < xFrames; x++) {
            for (int y = 0; y < yFrames; y++) {
                createTexture(name + "." + x + "." + y, sheet.getSubimage(x * spriteWidth, y * spriteHeight, spriteWidth, spriteHeight));
            }
        }
    }