Chapter 23 ■ Completing the gameplay Code and player proofing your event handling
Figure 23-31. Change your squareClick code to squareClick1 through squareClick4 to match up with the
quadrant involved
Figure 23-32. Select and delete the squareClick = true; statement in createAnimationAssets(), as we are now
moving it
Remove the squareClick reference from your createAnimationAssets() method since we’re going to
control square clicks on a quadrant basis in the four populateQuadrant() methods, which is now a more
logical place to do so.
As you can see in Figure 23-32, I’ve selected the createAnimationAssets() squareClick statement
for deletion.