By this time, you'll have been
unsurprised that nothing happens when we drive the hero over a strawberry, as we haven't written that bit yet.
We're going to take that for-loop we coded in our Do_a_Frame function:
for (var i=0; i < fruit.length; i++) fruit[i].Do_Frame_Things();
And we're going to expand it a bit:
for (var i=0; i < fruit.length; i++) {
fruit[i].Do_Frame_Things();
if (ImagesTouching(fruit[i], hero)) make_bad_thing_happen_to_fruit(fruit[i]);
}
In other words, every frame we ask each piece of fruit to draw itself and tend to its animations. And we also check if that piece of fruit is touching the hero. If it is, we make a bad thing happen to that particular piece of fruit.