public HitEffect getEffect(int type) throws IOException {
        if (type == Hero.ARYA){
            return new HitEffect(Image.createImage("/effect1.png"),48,26);
        }else if (type == Hero.BIMA){
            return new HitEffect(Image.createImage("/effect2.png"),43,26);
        } else {
            return new HitEffect(Image.createImage("/effect3.png"),49,27);
        }
    }