Book Image

Unity 2D Game Development Cookbook

By : Claudio Scolastici
Book Image

Unity 2D Game Development Cookbook

By: Claudio Scolastici

Overview of this book

<p>Unity is a powerful game development engine that provides rich functionalities to create 2D and 3D games.</p> <p>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.</p>
Table of Contents (15 chapters)
Unity 2D Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


Though Unity is basically a three-dimensional engine, it provides several excellent tools to create full two-dimensional games as well. As most indie games are 2D, we think you can take advantage of learning at least the basics of managing sprites in Unity. With this chapter, we aim to make you proficient with sprites, spritesheets, and 2D animation techniques.

Sprites can be defined as 2D images that get animated in a larger scene. Think of any classic 2D platform video game, such as Nintendo's Super Mario Bros. There is a background image (usually static), and there is a character running and jumping across the screen. That character is a sprite.

A sprite is created by importing a texture in the project and setting it as a Sprite type.