You are previewing Game Development with Unity®, Second Edition.
O'Reilly logo
Game Development with Unity®, Second Edition

Book Description

The Unity engine game development tool is a multi-platform engine and editor rolled into one. It is an ideal development tool for independent developers and students, and many pro studios turn to it for fast prototyping. Unity allows developers to create a single game and release it on many platforms including Android, iOS, and the web. This completely updated edition of GAME DEVELOPMENT WITH UNITY is a tutorial-style guide that provides a complete overview of the Unity editor along with step-by-step projects covering every basic functional aspect, from asset importing to publishing. Each chapter includes tutorials and small assignments geared toward making a larger game. You will learn the basics of design and level theory and prototyping concepts in the virtual world. You will also learn how to polish and publish your finished game. A companion website features software, sample levels, source code and more. Start learning Unity today with GAME DEVELOPMENT WITH UNITY, SECOND EDITION.

Table of Contents

  1. Title Page
  2. Copyright Page
  3. ACKNOWLEDGMENTS
  4. ABOUT THE AUTHORS
  5. CONTENTS
  6. Introduction
  7. PART I IN THE BEGINNING …
    1. Chapter 1 An Overview of the Unity Engine
      1. Getting Acquainted with the Interface
      2. Unity’s Basic Concepts
      3. Available Unity Licenses
    2. Chapter 2 Your First Game: Where to Start?
      1. Basic Design Theory
      2. Finding the Core Idea
      3. Planning It All Out
      4. Getting Started
  8. PART II ASSEMBLING THE GAME ASSETS
    1. Chapter 3 Setting the Stage with Terrain
      1. Unity’s Terrain Engine
      2. Customizing Terrain
      3. Lighting and Shadows
      4. Adding a Skybox and Distance Fog
      5. Adding Water to Your Terrain
    2. Chapter 4 Building Your Environment: Importing Basic Custom Assets
      1. Design First, Then Build
      2. Importing Textures for Widget’s Terrain
      3. Importing Basic Meshes
      4. Setting Up Simple Shaders and Materials
      5. Helpful Tips for Working with Assets
    3. Chapter 5 Creating Characters
      1. Basic PC 101
      2. Character Capabilities in Unity
      3. Importing Characters and Other Non-Static Meshes
  9. PART III BRINGING YOUR PROPS TO LIFE WITH INTERACTIVITY
    1. Chapter 6 Scripting in Unity
      1. One Editor, Three Languages, a Whole Lotta Choice
      2. Picking a Script Editor—or, “Do You Want Autocompletion with That?”
      3. Fundamentals of Scripting in Unity
    2. Chapter 7 Writing the Character and State Controller Scripts
      1. Setting It Up and Laying It Out
      2. A Simple Third-Person Controller
      3. Completed Scripts
    3. Chapter 8 Hooking Up the Animations
      1. Animation in Unity
      2. Animation API
      3. Setting Up the PC’s Animations
      4. Creating Animations Inside Unity
      5. Completed Scripts
    4. Chapter 9 Using Triggers and Creating Environment Interactions
      1. Triggers and Collision
      2. Completed Scripts
    5. Chapter 10 Building Adversaries and AI
      1. Artificial Intelligence: Definitely Artificial, Not Much Intelligence
      2. Setting Up a Simple Enemy
      3. Hooking Up Widget’s Attacks
      4. Rewarding the Player for a Job Well Done
      5. Spawning and Optimization
      6. Completed Scripts
    6. Chapter 11 Designing the Game’s GUI (Graphical User Interface)
      1. Basic Interface Theory
      2. Unity’s GUI System
      3. A Custom Skin for Widget
      4. Setting Up the HUD
      5. A Sample Pop-Up Screen
      6. Adding Full-Screen Menus
      7. Completed Scripts
  10. PART IV POLISH AND THE FINISHING TOUCHES
    1. Chapter 12 Creating Lighting and Shadows
      1. Types of Lights
      2. Lighting the World
      3. Creating Shadows
      4. Other Light Effects
    2. Chapter 13 Using Particle Systems
      1. Particles: From Smoke to Stardust
      2. Setting Up a Simple System
      3. Particles for Widget
      4. Completed Scripts
    3. Chapter 14 Adding Audio and Music
      1. Feedback and Ambience
      2. Setting Up a Simple Audio Clip
      3. Completed Script
  11. PART V PUBLISHING AND DISTRIBUTING BUILDS
    1. Chapter 15 Basic Unity Debugging and Optimization
      1. Debugging in Unity
      2. Optimization
    2. Chapter 16 Creating the Final Build
      1. Prepping for the Build
      2. Other Build Features
      3. The End of the Road?
  12. PART VI APPENDIXES AND OTHER RESOURCES
    1. Appendix A Shortcuts and Hotkeys
    2. Appendix B Common Classes
      1. MonoBehaviour
      2. Transform
      3. Rigidbody
      4. CharacterController
      5. Mathf
    3. Appendix C Going Forward
      1. Design Exercises
      2. Scripting Exercises
      3. Art and Animation Exercises
      4. Audio Exercises
      5. GUI Exercises
    4. Appendix D Resources and References
      1. Books
      2. Programs
      3. Scripting and General Unity Help
    5. Appendix E Glossary
  13. Index