public static void init() throws IOException {
        for (int i = 0; i < runAnimationLeft.length; i++) {
            runAnimationLeft[i] = ((BufferedImage) image).getSubimage(i * 143, 0, 143, 178);
            runAnimationRight[i] = ((BufferedImage) image).getSubimage(i * 143, 0, 143, 178);
        }
        image = ImageIO.read(ClassLoader.getSystemClassLoader().getResourceAsStream("resources/img/skel_attack.png"));
        for (int i = 0; i < attackAnimationLeft.length; i++) {
            attackAnimationLeft[i] = ((BufferedImage) image).getSubimage(i * 173, 0, 173, 167);
            attackAnimationRight[i] = ((BufferedImage) image).getSubimage(i * 173, 0, 173, 167);
        }
        image = ImageIO.read(ClassLoader.getSystemClassLoader().getResourceAsStream("resources/img/skel_die.png"));
        for (int i = 0; i < dieAnimationLeft.length; i++) {
            dieAnimationLeft[i] = ((BufferedImage) image).getSubimage(i * image.getWidth(null) / dieAnimationLeft.length, 0, image.getWidth(null) / dieAnimationLeft.length, image.getHeight(null));
            dieAnimationRight[i] = ((BufferedImage) image).getSubimage(i * image.getWidth(null) / dieAnimationLeft.length, 0, image.getWidth(null) / dieAnimationLeft.length, image.getHeight(null));
        }
        invertAnimation(attackAnimationLeft);
        invertAnimation(dieAnimationLeft);
        invertAnimation(runAnimationLeft);
    }