You are previewing Unity 5.x Game Development Blueprints.
O'Reilly logo
Unity 5.x Game Development Blueprints

Book Description

A project-based guide to help you create amazing games with Unity 5.x

About This Book

  • Unleash the power of C# coding in Unity and the state of the art Unity rendering engine.

  • Through this unique project-based approach, you will create 7-8 action-packed games from scratch.

  • This assortment of games will take you on a fun-filled journey of becoming a full-fledged Unity game developer.

  • Who This Book Is For

    This book is best suited for C# developers who have some basic knowledge of the Unity Game development platform. If you are looking to create exciting and interactive games with Unity and get a practical understanding of how to leverage key Unity features and then optimize the Unity rendering engine, then this book is your one-stop solution.

    What You Will Learn

  • Find out how to create exciting and interactive games using GUIs

  • Prepare animations to be imported and exported

  • Personalize your animation game with Unity’s advanced animation system

  • Work with different animation assets and components

  • Customize the game by modifying the player properties and creating exterior environments

  • Create, visualize, and edit animated creatures

  • Familiarize yourself with best practices for Unity 5.x animation using iTween

  • Design character actions and expressions

  • Customize your game and prepare it for playin

  • In Detail

    This book will help you to create exciting and interactive games from scratch with the Unity game development platform. We will build 7-8 action-packed games of different difficulty levels, and we’ll show you how to leverage the intuitive workflow tools and state of the art Unity rendering engine to build and deploy mobile desktop as well as console games.

    Through this book, you’ll develop a complete skillset with the Unity toolset. Using the powerful C# language, we’ll create game-specific characters and game environments. Each project will focus on key Unity features as well as game strategy development. This book is the ideal guide to help your transition from an application developer to a full-fledged Unity game developer

    Style and approach

    A step by step approach to develop a strong Unity skillset by creating a few action-packed games from scratch.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. Unity 5.x Game Development Blueprints
      1. Table of Contents
      2. Unity 5.x Game Development Blueprints
      3. Credits
      4. About the Author
      5. Acknowledgments
      6. About the Reviewer
      7. www.PacktPub.com
        1. eBooks, discount offers, and more
          1. Why subscribe?
      8. 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. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      9. 1. 2D Twin-stick Shooter
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Setting up the project
        3. Creating our scene
          1. Scripting 101
        4. Implementing player movement
        5. Shooting behavior
        6. Creating enemies
        7. Adding GameController to spawn enemy waves
        8. Particle systems for enemy explosion
        9. Adding in sound effects/music
        10. Adding in points, score, and wave numbers
        11. Publishing the game
        12. Summary
        13. Challenges
      10. 2. Creating GUIs
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Creating the main menu level
        3. Adding a header text object
        4. Adding main menu buttons
        5. Pausing the game
        6. Restarting the game
        7. Creating an Options menu
        8. Summary
        9. Challenges
      11. 3. GUIs Part 2 – Clicker Game
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Starting our project
        3. Recording and displaying clicks
          1. Working with accessors (get/set functions)
          2. Tooltip and Header attributes
          3. Explaining GameController's functionality
        4. Creating a shop
          1. Making the list scrollable with ScrollView
        5. Opening/closing the shop
        6. Purchasing upgrades
          1. Working with enumerations
          2. Switch statements
          3. Explaining the StoreItem class
          4. Filling in Item descriptions
        7. Summary
        8. Challenges
      12. 4. Mobile Endless Game – Procedural Content
        1. Project overview
          1. Your objectives
        2. Prerequisites
        3. Project setup
        4. Adding the background
        5. Adding a simple animated character
        6. Making a repeating background
          1. Repeating background script
        7. Working with sorting layers
        8. Creating our player behaviour
          1. Stopping the game
        9. Creating obstacles
        10. Spawning obstacles at runtime
        11. Game start and end behaviours
        12. Keeping score
        13. Summary
        14. Challenges
      13. 5. Shooting Gallery – Working with Animations and Tweens
        1. Project overview
          1. Your objectives
        2. Prerequisites
        3. Project setup
        4. Creating the environment
        5. Adding a target
          1. Animating the duck using Unity's animation system
          2. Playing Unity animations via code
          3. Animation using iTween
          4. Creating moving targets
        6. Creating many targets
        7. Creating waves of targets
        8. Adding in a time limit
        9. Adding in Score/High score
          1. PlayerPrefs
            1. Set
            2. Get
        10. Summary
        11. Project completed
        12. Challenges
      14. 6. Side-scrolling Platformer
        1. Project overview
          1. Your objectives
          2. Prerequisites
          3. Project setup
        2. Tile-based level creation
          1. Working with arrays
        3. Creating our player
          1. Adding Jump functionality
          2. Working with Gizmos
          3. Smoothing out player movement
            1. Restricting Jumping
            2. Preventing the player getting stuck
        4. Creating Collectibles
          1. Adding new objects to our level builder
            1. Switch statements continued
        5. Keeping score
          1. Singletons
        6. Winning the game
        7. Summary
        8. Challenges
      15. 7. First Person Shooter Part 1 – Creating Exterior Environments
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Project setup
          1. Level design 101 – planning
        3. Introduction to terrain
          1. Height maps
          2. Hand sculpting
        4. Exterior environment – terrain
        5. Adding color to our terrain – textures
          1. Adding multiple textures to a terrain
        6. Adding water
        7. Adding trees
        8. Adding in details – grass
        9. Building atmosphere
        10. Summary
        11. Challenges
      16. 8. First-person Shooter Part 2 – Creating Interior Environments
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Project setup
          1. Creating architecture overview
            1. 3D modelling software
            2. Constructing geometry with brushes
            3. Modular tilesets
              1. Mix and match
        3. Importing assets
        4. Creating tiles
        5. Placing tiles with grid snapping
        6. Creating and placing props
        7. Lightmapping quickstart
        8. Summary
        9. Challenges
      17. 9. First Person Shooter Part 3 – Implementing Gameplay and AI
        1. Project overview
          1. Your objectives
        2. Setting up the project
        3. Creating our player
        4. Adding a flashlight
        5. Creating our weapon
          1. Creating our camera
          2. Shooting our camera
        6. Creating an enemy
          1. State machines 101
        7. Enemy movement
          1. Advanced FSMs
        8. Damaging and killing enemies
        9. Using controller input
        10. Moving to other levels
        11. Summary
        12. Challenges
      18. 10. Building an In-Game Level Editor
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Level editor – introduction
          1. Lists
        3. Level editor – adding/removing walls at runtime
        4. Level editor – toggling editor, GUI, and selecting additional tiles
          1. The anatomy of a IMGUI control
            1. ControlType
            2. Content
          2. GUI.Button
          3. GUILayout
        5. Level editor – saving/loading levels to file
          1. FileStreams
          2. BinaryFormatter
        6. Summary
        7. Challenges
      19. 11. Finishing Touches
        1. Project overview
          1. Your objectives
          2. Prerequisites
        2. Setting up the build settings
        3. Customizing your exported project via the player settings
        4. Building an installer for Windows
        5. Summary
        6. Challenges
      20. Index