No One Is Alone Forever

Now, we've laid down the foundations for our second game. In this chapter, it is all about adding a bit more substance to our shooter. In this chapter, we will learn how to create an explosion and use it within our shooting system. In particular, we will learn how to:

  • Create the player controller, so that the player can move the spaceship and shoot with it
  • Code a simple AI enemy, which results in challenging the players and adding a bit more action to the game
  • Implement bullets in our game, since without them it wouldn't be a shooter

At the end of the chapter, you will find an exercise section in which you can practice what you have learned in this chapter. However, if you really want to dig deeper into AI, you should consider buying a specific book about it. 

By the end of this chapter, you will be able to:

  • Create a shooting system for any 2D game
  • Implement a basic AI enemy, but that is smart enough to be an obstacle for the player
  • Have a better understanding of how to call functions between scripts
  • Instantiate game objects, such as bullets or explosions
  • Expose many variables in the Inspector for each controller, so that designers can customize and balance the experience
  • Make game objects auto-destruct after a certain period of time

Ready to learn all this awesome stuff? Very well, let's dive in!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset