The inside of the function was a bit complicated, but even if we accepted the function as magic provided for our use, it was still pretty awkward to make use of:
Now, thanks to objects, each variable is not just a single variable, but a package of everything we need to know about that particular game sprite, and all the properties travel together.
Once we redefine ImagesTouching to use our objects, it becomes much more pleasant to use:
|