Let's pick up the AlienInvaders game we started putting together in the previous chapter. In this chapter, we are going to set up our game to have its own state machine. If we go back and look over the
GameViewController code from the previous chapter, you will notice that everything that we put in here doesn't really have anything to do with the game itself; it is all about the player. That doesn't make any sense if we want our player to have its own state machine and the game to have its own state machine. Let's start by performing the following steps:
EnemyBulletunder your File menu and add a new file.