public void getComida(int type){
        double min, min2, minX, minY;
        Cuerpo comida = null;
        min = 12345;
        minX = 0;
        minY = 0;
        for(Cuerpo c : Game.art){
            if((c.getTipo() == type)&& c.getVida()>1){
                min2 = min;
                min = Math.min(min, Math.hypot(c.getPosX()-getPosX(), c.getPosY()-getPosY()));
                if(min2 != min){
                    minX = c.getPosX();
                    minY = c.getPosY();
                    comida = c;
                }
            }
        }
        if(min != 12345){
            setTarX(minX);
            setTarY(minY);
            if(min < getSize()*2 && comida.getVida()>1){
                if(type < 2){
                    addHambre(1200);
                }else{
                    addRespira(1200);
                }
                addVida(500);
                addSize(1);
                comida.muerte();
                setTarX(getPosX());
                setTarY(getPosY());
                Game.score += getEspecie();
            }
        }
    }