Building an FPS Game with Unity
eBook - ePub

Building an FPS Game with Unity

  1. 326 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building an FPS Game with Unity

About this book

Create a high-quality first person shooter game using the Unity game engine and the popular UFPS and Probuilder frameworks

About This Book

  • Learn how to use Unity in conjunction with UFPS and ProBuilder to create a high-quality game quickly
  • Create both interior and exterior environments
  • A step-by step guide to building a project with clear examples and instructions to create a number of interesting scenarios

Who This Book Is For

This book is for those who want to create an FPS game in Unity and gain knowledge on how to customize it to be their very own. If you are familiar with the basics of Unity, you will have an easier time, but it should make it possible for someone with no prior experience to learn Unity at an accelerated pace.

What You Will Learn

  • Use UFPS to build custom weapons with custom meshes and behaviors
  • Explore level design as you prototype levels, making use of Prototype to build levels out quickly
  • Build environments that are realistic as possible while keeping peak performance and repetitiveness down
  • Review tips and tricks on how to create environments using both terrain for outdoor areas and a modular workflow for interiors
  • Develop a number of different encounters that your players can fight against, from a simple turret enemy to complex AI characters from Shooter AI
  • Discover how to create unique objects such as exploding barrels and objects you can interact with
  • Create a custom GUI to help your game stand out from the crowd
  • Package your game for release, create an installer, and get your game out into the world

In Detail

Unity, available in free and pro versions, is one of the most popular third-party game engines available. It is a cross-platform game engine, making it easy to write your game once and then port it to PC, consoles, and even the web, making it a great choice for both indie and AAA developers.

Building an FPS Game in Unity takes readers on an exploration of how to use Unity to create a 3D first person shooter (FPS) title, leveraging the powerful UFPS framework by VisionPunk and Prototype/ProBuilder 2.0 by ProCore3D.

After some setting up, you will start by learning how to create custom weapons, prototype levels, create exterior and interior environments, and breathe life into our levels. We will then add polish to the levels. Finally, we will create a custom GUI and menus for our title to create a complete package.

Style and approach

An easy-to-follow guide with each project containing step-by-step explanations, diagrams, screenshots, and downloadable material. Concepts in Unity and C# are explained as they are used and for the more inquisitive, there are more details on the concepts used with additional external resources to learn from.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Building an FPS Game with Unity


Table of Contents

Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started on an FPS
Prerequisites
Project creation
Getting started with the Asset Store
Installing UFPS
Installing Prototype
File organization
Customizing Unity's layout
Summary
2. Building Custom Weapons
Prerequisites
Setting up a testbed
Getting models/sounds for weapons
Building our weapon – the mesh
Creating a UnitBank
Creating the weapon
Customizing our weapon's properties
Summary
3. Prototyping Levels with Prototype
Prerequisites
Level design 101 – planning
Creating the architectural overview
3D modeling software
Constructing geometry with brushes
Modular tilesets
Mix and match
Creating geometry
Building a doorway
Duplicating rooms / creating a hallway
Preventing falls - collision
Adding stairways
Coloring your world
Summary
4. Creating Exterior Environments
Prerequisites
Introduction to Terrain
Height maps
Hand sculpting
Creating the Terrain
Adding color to our Terrain – textures
Adding water
Adding trees
Adding details – grass
Building the atmosphere – Skyboxes and Fog
Summary
5. Building Encounters
Prerequisites
Adding a simple turret enemy
Integrating an AI system – RAIN
Integrating an AI system – Shooter AI
Spawning enemies with the help of a trigger
Spawning multiple enemies at once
Cleaning up dead AI
Placing healthpacks/ammo
Summary
6. Breathing Life into Levels
Prerequisites
Building an explosive barrel
Using triggers for doors
Creating an elevator
Summary
7. Adding Polish with ProBuilder
Prerequisites
Upgrading from Prototype to ProBuilder
Creating material
Working with ProBuilder – placing materials
Meshing your levels
Summary
8. Creating a Custom GUI
Prerequisites
Creating a main menu: part 1 – adding text
Creating a main menu: part 2 – adding buttons
Creating a main menu: part 3 – button functionality
Replacing the default UFPS HUD
Summary
9. Finalizing Our Project
Prerequisites
Building the game in Unity
Building an installer for Windows
Building an installer for Windows
Summary
Index

Building an FPS Game with Unity

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2015
Production reference: 1271015
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-480-6
www.packtpub.com
Cover image by John P. Doran

Credits

Author
John P. Doran
Reviewers
Schuyler L. Acosta
Alex Madsen
Tony Pai
Chittersu Raghu Vamsi
Nevin Vu
Commissioning Editor
Edward Bowkett
Acquisition Editor
Vivek Anantharaman
Content Development Editor
Riddhi Tuljapurkar
Technical Editor
Shivani Kiran Mistry
Copy Editor
Akshata Lobo
Project Coordinator
Sanchita Mandal
Proofreader
Safis Editiing
Indexer
Hemangini Bari
Graphics
Disha Haria
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade

Foreword

My first love affair with an FPS game was in 1995. I was an intern at a local rad...

Table of contents

  1. Building an FPS Game with Unity

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Building an FPS Game with Unity by John P. Doran in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C#. We have over one million books available in our catalogue for you to explore.