quite a bit just for the timer. There are now three examples of ways to switch to
PlayState. Plus, there's a timer countdown displayed in the upper right corner. I also put code that I had to write more than once into a new
BeginStateas shown in the following screenshot.
I'm not going to walk you through the State switching code, I already did that previously.
An analysis of the code shown in the preceding screenshot is as follows: On the
For lines 9, 10, and 11: