Jump to ratings and reviews
Rate this book

Unity 2D Game Development Cookbook

Rate this book
Over 50 hands-on recipes that leverage the features of Unity to help you create 2D games and game prototypesAbout This BookCreate 2D games right from importing assets to setting them up in Unity and adding them to your game scenes.Program the game logic and events as well as the game controls and user interface using the, C# scripting language and Monodevelop.A step-by-step guide written in a practical format to take advantage of the many features available in Unity.Who This Book Is ForThis book is intended for both professionals game developers and hobbist who are interested in making games with Unity. Users are expected to have knowledge of basics / fundamentals of unity 2D game development and should have a working knowledge of C#.

What You Will LearnImport files from other popular software into Textures, Models, Animations, and Audio clipsBuild up an actual game scene with cameras, lights, and the logic to control the game flowManage collisions, and implement physics and game controlsMake prefabs and instantiate them as game objects in the game sceneImport and configure music and sound effects to be added to your gamesDesign and control the user interface with the built-in methods of UnityIn DetailUnity 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.

258 pages, Kindle Edition

First published February 18, 2015

13 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
3 (60%)
3 stars
1 (20%)
2 stars
1 (20%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Heleen Durston.
20 reviews
April 20, 2015
Packt Publishing latest book on Unity is “Unity 2D Game Development Cookbook” by Claudio Scolastici. Since it is a cookbook that means there are recipes on how to do many things with Unity 2D. Packt Publishing also provides asset files as well as the code to download. There is also a downloadable PDF that shows the colored images from the book.
The book begins with techniques for importing models and scenes from Maya. Maya is used for this demonstration because of its popularity and its ability to export FBX models. Most 3D software can export FBX and this chapter explains how to import these models into Unity with little hassle. Importing of animation for the 3D models is also discussed.
The next chapter discusses importing textures from Photoshop or other 2D programs and then turning them into materials that you can place on objects. One of the recipes also discusses how to set up a texture atlas from a group of images. Another recipe covers animating 2D UV maps on a 3D object.
The third chapter is all about creating and animating a game character. The recipes cover everything from setting up an animation tree to creating a blend tree. This is a nice overview of the Mecanim animation system. I really enjoyed this chapter because almost every game is going to have some sort of character in it and being able to animate your character move in a variety of different ways makes your games more realistic.
The next two chapters take the character that was created in chapter three and give it a scene to move around in and provide physics to let the character react to objects. First Unity’s standard assets are imported from the Unity store. These assets contain a character controller package which includes prefabs, textures and scripts that are modified and used in our game. Later on collision detection and scrolling backgrounds are discussed. Lastly, a recipe for creating a camera that keeps our character at the center of the screen is created.
Chapter six has us code a game manager that is a state machine that gives us better control over the game. Recipes are provided for setting up the games UI as well as displaying “GAME OVER” and “GAME WIN” conditions. Chapter seven is focused on adding audio and video clips to the game.
Finally, in chapter eight setting up a 2D game with sprites and spritesheets is briefly talked about. Recipes are provided for animating the sprites and using keyframe animation with sprites.
Overall the “Unity 2D Game Development Cookbook” was a very interesting book on using 2D objects in a 3D game. I learned a lot from the different recipes and plan to keep this book on my reference shelf.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.