Building an FPS Game with Unity
eBook - ePub

Building an FPS Game with Unity

John P. Doran

Partager le livre
  1. 326 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Building an FPS Game with Unity

John P. Doran

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Building an FPS Game with Unity est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Building an FPS Game with Unity par John P. Doran en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et ProgramaciĂłn en C#. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
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...

Table des matiĂšres