Chapter 6. Continuing the 2D Adventure

In the previous chapter, we started work on a 2D adventure game. On reaching this point, we've now created a controllable character that can navigate a level using physics and collision detection as well as gravity. This chapter completes the 2D game project by adding the remaining features. Specifically, this chapter will cover the following topics:

  • Moving obstacles and features such as an elevator platform
  • Gun turrets to attack the player
  • An NPC with a quest system

    Note

    The starting project and assets can be found in the book companion files in the Chapter06/Start folder. You can start here and follow along with this chapter if you don't have your own project already.

Moving platforms

Now let's refine the adventure ...

Get Unity 5.x By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.