Unity 2D Game Development Cookbook

Discover more than 50 solutions to your Unity 2D game development headaches – each one created to guide you through a range of game development tasks step by step

Unity 2D Game Development Cookbook

This ebook is included in a Mapt subscription
Claudio Scolastici

1 customer reviews
Discover more than 50 solutions to your Unity 2D game development headaches – each one created to guide you through a range of game development tasks step by step
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781783553594
Paperback256 pages

Book Description

Unity is a powerful game development engine that provides rich functionalities to create 2D and 3D games.

Unity 2D Game Development Cookbook is a practical guide to creating games with Unity. The book aims to serve the purpose of exploring problematic concepts in Unity for 2D game development, offering over 50 recipes that are easy to understand and to implement, thanks to the step-by-step explanations and the custom assets provided. The practical recipes provided in the book show clearly and concisely how to do things right in Unity. By the end of this book, you'll be near "experts" when dealing with Unity. You will also understand how to resolve issues and be able to comfortably offer solutions for 2D game development.

Table of Contents

Chapter 1: Importing 3D Models and Animations
Introduction
Setting up a scene in Maya
Using groups to rotate FBX files
Exporting FBX files from Maya
Configuring imported FBX files in Unity
Exporting animations
Configuring imported animations in Unity Inspector
Chapter 2: 2D Assets for Unity
Introduction
Importing textures and setting them to Inspector
Configuring transparency
Creating materials
Setting materials' names in Maya
Setting the ambient light in Unity
Texture atlases
Animated materials
Chapter 3: Animating a Game Character
Introduction
Creating the animation tree
Dealing with transitions
Coding the Boolean-based transitions
Working with float parameters
Coding the float-based transitions
Creating Blend Tree
Animation layers – creating masks
Animation layers – adding a second animation layer
Chapter 4: Taking Control
Introduction
Creating a bumped material
Importing packages
Setting the Character Controller
Adding Rigidbody
Coding physics controls
Collision management
Chapter 5: Building Up the Game Level
Introduction
Creating Prefabs
Coding a scrolling background
Adding platforms
Programming the character controls
Setting up an Animator
Adding collectibles to the game level
Camera setup and controls
Chapter 6: Game Scenes and the Graphic Interface
Introduction
The game manager
Loading a new scene at runtime
Setting game exit conditions – character death
Setting game exit conditions – goals met
Using OnGUI() to display game data
Display the number of collected items
Game Won and Game Over
Chapter 7: Improving Your Gaming Experience
Introduction
Importing audio clips
The Audio Source component
Coding audio
Particle systems
Instantiating a particle system at runtime
Game options – volume level
Game options – toggling audio
Playing videoclips in the scene
Chapter 8: Sprites, Spritesheets, and 2D Animation in Unity
Introduction
Setting up sprites
Multiple sprites
Animating with spritesheets
Preparing the character sprites
Parenting sprites
Keyframe sprite animation

What You Will Learn

  • Import files from other popular software into Unity: Textures, Models, Animations, and Audio clips
  • Build up an actual game scene with cameras, lights, and the logic to control the game flow
  • Manage collisions, and implement physics and game controls
  • Make prefabs and instantiate them as game objects in the game scene
  • Import and configure music and sound effects to be added to your games
  • Design and control the user interface with the built-in methods of Unity

Authors

Table of Contents

Chapter 1: Importing 3D Models and Animations
Introduction
Setting up a scene in Maya
Using groups to rotate FBX files
Exporting FBX files from Maya
Configuring imported FBX files in Unity
Exporting animations
Configuring imported animations in Unity Inspector
Chapter 2: 2D Assets for Unity
Introduction
Importing textures and setting them to Inspector
Configuring transparency
Creating materials
Setting materials' names in Maya
Setting the ambient light in Unity
Texture atlases
Animated materials
Chapter 3: Animating a Game Character
Introduction
Creating the animation tree
Dealing with transitions
Coding the Boolean-based transitions
Working with float parameters
Coding the float-based transitions
Creating Blend Tree
Animation layers – creating masks
Animation layers – adding a second animation layer
Chapter 4: Taking Control
Introduction
Creating a bumped material
Importing packages
Setting the Character Controller
Adding Rigidbody
Coding physics controls
Collision management
Chapter 5: Building Up the Game Level
Introduction
Creating Prefabs
Coding a scrolling background
Adding platforms
Programming the character controls
Setting up an Animator
Adding collectibles to the game level
Camera setup and controls
Chapter 6: Game Scenes and the Graphic Interface
Introduction
The game manager
Loading a new scene at runtime
Setting game exit conditions – character death
Setting game exit conditions – goals met
Using OnGUI() to display game data
Display the number of collected items
Game Won and Game Over
Chapter 7: Improving Your Gaming Experience
Introduction
Importing audio clips
The Audio Source component
Coding audio
Particle systems
Instantiating a particle system at runtime
Game options – volume level
Game options – toggling audio
Playing videoclips in the scene
Chapter 8: Sprites, Spritesheets, and 2D Animation in Unity
Introduction
Setting up sprites
Multiple sprites
Animating with spritesheets
Preparing the character sprites
Parenting sprites
Keyframe sprite animation

Book Details

ISBN 139781783553594
Paperback256 pages
Read More
From 1 reviews

Read More Reviews