You are previewing Getting Started with Unity.
O'Reilly logo
Getting Started with Unity

Book Description

Learn how to use Unity by creating your very own 'Outbreak' survival game while developing your essential skills

  • Use basic AI techniques to bring your game to life

  • Learn how to use Mecanim; create states and manage them through scripting

  • Use scripting to manage the graphical interface, collisions, animations, persistent data, or transitions between scenes

In Detail

Unity is a game development engine which is fully integrated with a complete set of intuitive tools and rapid workflows used to create interactive 3D content. Unity is best used for making great games that can deploy to numerous platforms.

"Getting Started with Unity" guides you progressively through the necessary steps to create a survival game using Unity3D’s built-in objects and components, JavaScript, animations with Mecanim, and some basic AI.

In this book, you will be introduced to a wide range of the core features used for games developed with Unity3D, including the user interface and much more. Furthermore, you will also learn about essential aspects like transformations, scripting, navigation, and built-in controllers.

Beginning with an introduction to the user interface, you will learn the necessary skills required to create a survival video game. Each section is a stepping-stone toward the completion of the final game. By the end of the book, you will have created an indoor level with enemies, AI, weapons, objects to collect, and all the logic to control the game.

Table of Contents

  1. Getting Started with Unity
    1. Table of Contents
    2. Getting Started with Unity
    3. Credits
    4. About the Author
    5. About the Reviewer
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting to Know Unity3D
      1. Introduction to game engines
      2. Why choose Unity
      3. What's new in Unity3D 4
      4. Downloading Unity3D
      5. Launching Unity3D
      6. Unity3D's interface
        1. The Scene view
          1. Navigating in the scene
        2. The Hierarchy view
        3. The Project view
        4. The Inspector
        5. The Console
      7. Navigating through the AngryBots scene
      8. Creating a new project and scene
      9. Adding objects to a scene
        1. Creating a cube
          1. Adding a texture to objects
          2. Inserting imported objects
      10. Implementing first- and third-person views
        1. Adding a first-person controller
        2. Adding a third-person controller
      11. Summary
    9. 2. Creating a Maze with Built-in Objects
      1. Creating a maze based on built-in objects
      2. Fine-tuning the level
      3. Understanding colliders
      4. Summary
    10. 3. Using Scripts to Interact with Objects
      1. Introduction to scripting in Unity3D
      2. Importing necessary assets
      3. Creating our first script
      4. Collecting objects
      5. Adding audio
      6. Creating and displaying an inventory system
      7. Finishing the game
      8. Summary
    11. 4. Creating and Tracking Objects
      1. Displaying the health bar
      2. Displaying a mini-map of the level
      3. Creating a gun
      4. Allowing for repeated shots
      5. Summary
    12. 5. Bringing Your Game to Life with AI and Animations
      1. Importing and configuring the 3D character
      2. Animating the character for the game
      3. Creating parameters and transitions
      4. Adding basic AI to enemies
      5. Sending messages to alert other close enemies
      6. Creating additional states
      7. Using waypoints to define a path
      8. Summary
    13. 6. Finalizing and Optimizing Your Game
      1. Improving the AI using breadcrumbing
        1. Allowing enemies to throw and follow their own breadcrumbs
        2. Allowing enemies to follow the player's breadcrumbs
      2. Creating and updating prefabs
      3. Keeping track of the number of lives
      4. Animating the door that leads to the water section
      5. Creating a menu system for your game
      6. Keeping track of the number of lives
      7. Optimizing the game
      8. Exporting your game to the web
      9. Where to go from here
        1. Game design
        2. Artificial intelligence
        3. 3D characters
        4. Creating your audio files
        5. Learning more about Unity3D
      10. Summary
    14. Index