@Override
    public void render(Graphics g) {
        if (type == 0) {
            if (direction == 0) {
                g.drawImage(tex.enemy[0], (int) x, (int) y, (int) width, (int) height + 12, null);
            }
            if (direction == 1) {
                g.drawImage(tex.enemy[1], (int) x, (int) y, (int) width, (int) height + 12, null);
            }
        }
        if (type == 1) {
            if (direction == 0) {
                g.drawImage(tex.enemy[4], (int) x, (int) y, (int) width, (int) height, null);
            }
            if (direction == 1) {
                g.drawImage(tex.enemy[5], (int) x, (int) y, (int) width, (int) height, null);
            }
        }
        if (type == 2) {
            if (direction == 0) {
                g.drawImage(tex.enemy[2], (int) x, (int) y, (int) width, (int) height, null);
            }
            if (direction == 1) {
                g.drawImage(tex.enemy[3], (int) x, (int) y, (int) width, (int) height, null);
            }
        }
        showHealthBar(g);
    }