Book Image

Building an FPS Game with Unity

By : John P. Doran, jamal seaton
5 (1)
Book Image

Building an FPS Game with Unity

5 (1)
By: John P. Doran, jamal seaton

Overview of this book

Table of Contents (18 chapters)
Building an FPS Game with Unity
About the Author
About the Reviewers

Chapter 5. Building Encounters

We now have all the knowledge that we need in order to create our gameplay environments, but right now, they're just places that we can walk around in and shoot at. In this chapter, we are going to learn how to create various types of encounters in order to generate effective gameplay scenarios.

Now, as a level designer and/or scripter for a project, you'll often need to implement various encounters that a player will need to go through in the project. There are way too many possibilities for encounters to cover here, but I'll go into some of the most common ones that you'll often see in an FPS.

This project will be split into a number of tasks. It will be a simple step-by-step process from the beginning to the end. Here is an outline of our tasks:

  • Adding a simple turret enemy

  • Integrating an AI system

  • Setting up enemy characters

  • Spawning a group of enemies with the help of a trigger

  • Cleaning up dead AI

  • Placing ammo/healthpacks