SNAKE eating OLD(!!!?!) apples
Channel: budlabs
Date: 09/05/2020

oldapple() {

  local a op

 ((--_freshness % 10)) || {
    
    case "$_freshness" in
      10 ) a="$_cyellow$_apple$_cres";;
      20 ) a="$_cblue$_apple$_cres";;
      30 ) a="$_cmagenta$_apple$_cres";;
      40 ) a="$_cred$_apple$_cres";;
    esac

    op+="\e[${_appleY};${_appleX}H$a"
  }

  op+="\e[${_pos[FY]};${_pos[FX]}H$(printf '%-5d' "$_freshness")"

  echo -en "$op"

}