Book Image

Building an FPS Game with Unity

5 (1)
Book Image

Building an FPS Game with Unity

5 (1)

Overview of this book

Table of Contents (18 chapters)
Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up a testbed


Now, before we get started, let's create an area that we can use to test our new weapons.

  1. Open up the project and a scene for us to work with. We can create a new level but, in this instance, UFPS comes with a nice scene for us to start with. From the Project tab, go to the UFPS/Base/Content/Levels/CleanScene folder and double-click on the CleanScene file.

    This scene (or level) is a simple terrain with a basic first-person camera and controller intended for prototyping, which is perfect for us, except we want our player to be already set up. To do this, we will remove this simple camera and replace it with a built-in one.

  2. From the Hierarchy tab, select the Camera object by clicking on it and delete it by pressing the Delete key.

  3. Next, go to the UFPS/Base/Content/Prefabs/Players folder and drag and drop an AdvancedPlayer prefab into your game world. To see the object, double-click on it in Hierarchy (or press the F hotkey with it selected) and it'll zoom directly to its position...