Building an FPS Game with Unity
eBook - ePub

Building an FPS Game with Unity

John P. Doran

Compartir libro
  1. 326 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Building an FPS Game with Unity

John P. Doran

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Building an FPS Game with Unity un PDF/ePUB en línea?
Sí, puedes acceder a Building an FPS Game with Unity de John P. Doran en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Programación en C#. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781782174806

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...

Índice