If life gives you lemons – keep them. Because, hey. Free lemons.
In this episode, we’re continuing from the last episode’s theme and investigate and compare an alternative structure for making our Ball and Counter objects cooperate. We also have a first brief look at casting.
Recognising alternatives is a good skill, and it slowly eases us into discussions about code quality, which we will get to in more detail later.
The download today (below) is the scenario as it is at the end of this episode. However, try to add a counter into one of your own scenarios to make sure you are fully taking in what’s going on here.
Concepts discussed: object interaction, casting, score counting
Download: breakout-v3.zip (the scenario at the end of this episode)