private static Bitmap[] loadSplit(String name, int sw, int sh) {
        try {
            BufferedImage bi = ImageIO.read(Art.class.getResource(name));
            int w = bi.getWidth();
            int h = bi.getHeight();

            int xs = w / sw;
            int ys = h / sh;

            Bitmap[] bitmaps = new Bitmap[xs * ys];
            for (int y = 0; y < ys; y++)
                for (int x = 0; x < xs; x++) {
                    int[] pixels = new int[sw * sh];
                    bi.getRGB(x * sw, y * sh, sw, sh, pixels, 0, sw);
                    bitmaps[x + y * xs] = new Bitmap(sw, sh, pixels);
                }

            return bitmaps;
        } catch (IOException e) {
            throw new RuntimeException("Failed to load " + name, e);
        }
    }