This code works fine but it would be too long if the score is 50 or over. Is there any way to make it shorter and quicker? I tried to use for loop statement but it didn't work well.
background(backgroundChange);
if (score >= 5 && score < 10)
backgroundChange-=0.8;
else if (score >= 10 && score < 15)
backgroundChange+=0.8;
else if (score >= 15 && score < 20)
backgroundChange-=0.8;