Unity 2018 By Example
eBook - ePub

Unity 2018 By Example

Learn about game and virtual reality development by creating five engaging projects, 2nd Edition

Alan Thorn

Buch teilen
  1. 484 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Unity 2018 By Example

Learn about game and virtual reality development by creating five engaging projects, 2nd Edition

Alan Thorn

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Build exciting 2D/3D games and virtual reality applications with the help of hands-on examples

Key Features

  • Create five different types of games from scratch with Unity 2018
  • Import custom content into Unity from third-party tools such as Maya and Blender
  • Learn to build NPCs with artificial intelligent behavior.

Book Description

Unity is the most exciting and popular engine used for developing games. With its 2018 release, Unity has become the primary source of both game development and virtual reality content.

In Unity 2018 By Example, you'll learn how to use Unity in order to make amazing games from popular genres - from action shooters to mind-bending puzzle games to adventure and Virtual Reality (VR) games. Even if you have no previous experience of using Unity, this book will help you understand the toolsets it provides in depth. In addition to this, you'll understand how to create time-critical collection games, twin-stick space shooters, platformers, and action-fest games with intelligent enemies. Finally, you'll get to grips with creating VR games with the new toolsets introduced by Unity to help you develop amazing VR experiences.

To make things easier, you will be provided with step-by-step tutorials for making five great games in Unity 2018, along with a detailed explanation of all the fundamental concepts. By the end of this book, you'll have established a strong foundation in making games with Unity 2018.

What you will learn

  • Understand core Unity concepts, such as game objects, components, and scenes
  • Study level-design techniques for building immersive and interesting worlds
  • Make functional games with C# scripting
  • Use the toolset creatively to build games with different themes and styles
  • Handle player controls and input functionality
  • Work with terrains and world-creation tools
  • Get to grips with making both 2D and 3D games

Who this book is for

You don't need to have any previous experience with Unity to enjoy Unity 2018 By Example, although you need to have basic knowledge of C#.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Unity 2018 By Example als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Unity 2018 By Example von Alan Thorn im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatik & Programmierung in C#. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2018
ISBN
9781788479325

Unity 2018 By Example - Second Edition


Table of Contents

Unity 2018 By Example - Second Edition
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is Searching for Authors Like You
Preface
Who this book is for
What this book covers
To get the most out of the book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
1. Unity Fundamentals
Game design
Getting started – Unity and projects
Projects and project folders
Importing assets
Starting a level
Transformations and navigation
Scene building
Lighting and sky
Play testing and the Game tab
Adding a water plane
Adding a coin to collect
Summary
Test your knowledge
Further Reading
2. Creating a Collection Game
Creating a coin material
C# scripting in Unity
Counting coins
Code Sample 2.3
Collecting coins
Code Sample 2.5
Coins and prefabs
Timers and countdowns
Code Sample 2.6
Celebrations and fireworks!
Code Sample 2.7
Play testing
Building
Summary
Test your knowledge
Further reading
3. Creating a Space Shooter
Looking ahead – the completed project
Getting started with a space shooter
Creating a player object
Player input
Code Sample 3.1
Configuring the game camera
Bounds locking
Code Sample 3.2
Health
Code Sample 3.3
Death and particles
Code Sample 3.4
Enemies
Code Sample 3.6
Code Sample 3.7
Code Sample 3.8
Enemy spawning
Code Sample 3.9
Summary
Test your knowledge
Further reading
4. Continuing the Space Shooter
Guns and gun turrets
Ammo prefabs
Code Sample 4-1
Ammo spawning
Code Sample 4.2
Code Sample 4.3
User controls
Scores and scoring – UI and text objects
Working with scores – scripting with text
Code Sample 4.4
Polishing
Testing and diagnosis
Building
Summary
Test your knowledge
Further Reading
5. Creating a 2D Adventure Game
A 2D Adventure – getting started
Importing assets
Creating an environment – getting started
Environment Physics
Creating a player
Scripting the player movement
Code Sample 5.1
Optimization
Summary
Test your knowledge
Further reading
6. Continuing the 2D Adventure
Moving platforms
Code Sample 6.1
Creating other scenes – levels 2 and 3
Kill zones
Code Sample 6.2
The UI health bar
Code Sample 6.3
Ammo and hazards
Gun turrets and ammo
NPCs and quests
Code Sample 6.8
Summary
Test your knowledge
Further Reading
7. Creating Artificial Intelligence
An overview of the project
Getting started
Terrain construction
Navigation and navigation meshes
Building an NPC
Code Sample 7.1
Creating patrolling NPCs
Summary
Test your knowledge
Further Reading
8. Continuing with Intelligent Enemies
Enemy AI – range of sight
Code Sample 8.1
An overview of Finite State Machines
Code Sample 8.2
The Patrol state
Code Sample 8.3
The Chase state
Code Sample 8.4
The Attack state
Code Sample 8.5
Summary
Test your knowledge
Further Reading
9. Entering Virtual Reality
Project Overview – Getting Started
Setting Scene Lighting
Post-Processing Stack 2
Preparing for VR
Summary
Test your knowledge
10. Completing the VR Game
Object Pool and Spawning
Code Sample 10.1
Code Sample 10.2
Creating Intelligent Enemies – Navigation
Creating Intelligent Enemies – FSMs
Code Sample 10.3
Code Sample 10.4
Attack and Damage
Code Sample 10.5
Summary
Test your knowledge
A. Test Your Knowledge Answers
Chapter 1- Unity Fundamentals
Chapter 2- Creating a Collection Game
Chapter 3- Creating a Space Shooter
Chapter 4- Continuing the Space Shooter
Chapter 5- Creating a 2D Adventure
Chapter 6- Continuing the 2D Adventure
Chapter 7- Creating Artificial Intelligence
Chapter 8- Continuing with Intelligent Enemies
Chapter 9- Entering Virtual Reality
Chapter 10- Completing the VR Game
Other Books You May Enjoy
Leave a review - let other readers know what you think
Index

Unity 2018 By Example - Second Edition

Copyright © 2018 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 authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been 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.
Commissioning Editor: Kunal Chaudhari
Acquisition Editor: Larissa Pinto
Content Development Editor: Onkar Wani
Technical Editor: Ralph Rosario
Copy Editor: Safis Editing
Project Coordinator: Devanshi Doshi
Proofreader: Safis Editing
Indexer: Rekha Nair
Graphics: Jason Monteiro
Production Coordinator: Aparna Bhagat
First published: July 2016
Second edition: July 2018
Production reference: 1300718
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78839-870-1
www.packtpub.com
Unity 2018 By Example - Second Edition
mapt.io...

Inhaltsverzeichnis