Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Claudio Scolastici
Unity 2D Game Development Cookbook
Unity 2D Game Development Cookbook
Table of Contents
Unity 2D Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
The goal
The mean
The interface
The words
The assistants
Start a new project in Unity
Getting ready
How to do it...
How it works...
Adding a folder to the project directory
Getting ready
The file structure
How to do it...
How it works...
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Importing 3D Models and Animations
Introduction
Setting up a scene in Maya
Getting ready
How to do it...
How it works...
Using groups to rotate FBX files
Getting ready
How to do it...
How it works...
There's more...
Exporting FBX files from Maya
Getting ready
How to do it...
How it works...
There's more...
Configuring imported FBX files in Unity
Getting ready
How to do it...
How it works...
Exporting animations
Getting ready
How to do it...
How it works...
There's more...
Configuring imported animations in Unity Inspector
Getting ready
How to do it...
How it works...
There's more...
2. 2D Assets for Unity
Introduction
About textures and materials
File formats of textures
Optimizing textures
Importing textures and setting them to Inspector
Getting ready
How to do it...
How it works...
Configuring transparency
Getting ready
How to do it...
How it works...
Creating materials
Getting ready
How to do it...
How it works...
There's more...
Setting materials' names in Maya
Getting ready
How to do it...
How it works...
Setting the ambient light in Unity
Getting ready
How to do it...
How it works...
Texture atlases
Getting ready
How to do it...
How it works...
There's more...
Animated materials
Getting ready
How to do it...
How it works...
There's more...
3. Animating a Game Character
Introduction
Creating the animation tree
Getting ready
How to do it...
How it works...
Dealing with transitions
Getting ready
How to do it...
How it works...
Coding the Boolean-based transitions
Getting ready
How to do it...
How it works...
Working with float parameters
Getting ready
How to do it...
How it works...
Coding the float-based transitions
Getting ready
How to do it...
How it works...
There's more....
Creating Blend Tree
Getting ready
How to do it...
How it works...
Animation layers – creating masks
Getting ready
How to do it...
How it works...
Animation layers – adding a second animation layer
Getting ready
How to do it...
How it works...
There's more...
4. Taking Control
Introduction
Creating a bumped material
Getting ready
How to do it...
How it works...
See also
Taking control of the game character
Importing packages
Getting ready
How to do it...
How it works...
Setting the Character Controller
Getting ready
How to do it...
How it works...
There is more...
Adding Rigidbody
Getting ready
How to do it...
How it works...
Coding physics controls
Getting ready
How to do it...
How it works...
Collision management
Getting ready
How to do it...
How it works...
There is more...
5. Building Up the Game Level
Introduction
Level design
Making the background for the prototype
Creating Prefabs
Getting ready
How to do it...
How it works...
Coding a scrolling background
How to do it...
How it works...
Adding platforms
Getting ready
How to do it...
How it works...
There's more...
Programming the character controls
Getting ready
How to do it...
How it works...
There's more...
Setting up an Animator
How to do it...
How it works...
Adding collectibles to the game level
Getting ready
How to do it...
How it works...
There's more...
Camera setup and controls
How to do it...
How it works...
There's more...
6. Game Scenes and the Graphic Interface
Introduction
The game manager
Getting ready
How to do it...
How it works…
There's more...
Loading a new scene at runtime
Getting ready
How to do it…
How it works…
Setting game exit conditions – character death
Getting ready
How to do it…
How it works…
Setting game exit conditions – goals met
Getting ready
How to do it…
How it works…
Using OnGUI() to display game data
Getting ready
How to do it…
How it works…
There's more...
Display the number of collected items
Getting ready
How to do it…
How it works…
Game Won and Game Over
Getting ready
How to do it…
How it works…
There's more…
7. Improving Your Gaming Experience
Introduction
Importing audio clips
Getting ready
How to do it...
How it works...
The Audio Source component
Getting ready
How to do it...
How it works...
There's more...
Coding audio
Particle systems
Getting ready
How to do it...
How it works...
There's more...
Instantiating a particle system at runtime
Getting ready
How to do it
How it works...
Game options – volume level
Getting ready
How to do it...
How it works...
Game options – toggling audio
Getting ready
How to do it...
Playing videoclips in the scene
Getting ready
How to do it...
How it works...
There's more...
8. Sprites, Spritesheets, and 2D Animation in Unity
Introduction
Setting up sprites
Getting ready
How to do it...
How it works...
There's more...
Multiple sprites
Getting ready
How to do it...
How it works...
There's more...
Animating with spritesheets
Getting ready
How to do it...
How it works...
There's more...
Preparing the character sprites
Getting ready
How to do it...
How it works...
Parenting sprites
Getting ready
How to do it...
How it works...
Keyframe sprite animation
Getting ready
How to do it...
How it works...
There's more...
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Unity 2D Game Development Cookbook
Table of Contents
Unity 2D Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
The goal
The mean
The interface
The words
The assistants
Start a new project in Unity
Getting ready
How to do it...
How it works...
Adding a folder to the project directory
Getting ready
The file structure
How to do it...
How it works...
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Importing 3D Models and Animations
Introduction
Setting up a scene in Maya
Getting ready
How to do it...
How it works...
Using groups to rotate FBX files
Getting ready
How to do it...
How it works...
There's more...
Exporting FBX files from Maya
Getting ready
How to do it...
How it works...
There's more...
Configuring imported FBX files in Unity
Getting ready
How to do it...
How it works...
Exporting animations
Getting ready
How to do it...
How it works...
There's more...
Configuring imported animations in Unity Inspector
Getting ready
How to do it...
How it works...
There's more...
2. 2D Assets for Unity
Introduction
About textures and materials
File formats of textures
Optimizing textures
Importing textures and setting them to Inspector
Getting ready
How to do it...
How it works...
Configuring transparency
Getting ready
How to do it...
How it works...
Creating materials
Getting ready
How to do it...
How it works...
There's more...
Setting materials' names in Maya
Getting ready
How to do it...
How it works...
Setting the ambient light in Unity
Getting ready
How to do it...
How it works...
Texture atlases
Getting ready
How to do it...
How it works...
There's more...
Animated materials
Getting ready
How to do it...
How it works...
There's more...
3. Animating a Game Character
Introduction
Creating the animation tree
Getting ready
How to do it...
How it works...
Dealing with transitions
Getting ready
How to do it...
How it works...
Coding the Boolean-based transitions
Getting ready
How to do it...
How it works...
Working with float parameters
Getting ready
How to do it...
How it works...
Coding the float-based transitions
Getting ready
How to do it...
How it works...
There's more....
Creating Blend Tree
Getting ready
How to do it...
How it works...
Animation layers – creating masks
Getting ready
How to do it...
How it works...
Animation layers – adding a second animation layer
Getting ready
How to do it...
How it works...
There's more...
4. Taking Control
Introduction
Creating a bumped material
Getting ready
How to do it...
How it works...
See also
Taking control of the game character
Importing packages
Getting ready
How to do it...
How it works...
Setting the Character Controller
Getting ready
How to do it...
How it works...
There is more...
Adding Rigidbody
Getting ready
How to do it...
How it works...
Coding physics controls
Getting ready
How to do it...
How it works...
Collision management
Getting ready
How to do it...
How it works...
There is more...
5. Building Up the Game Level
Introduction
Level design
Making the background for the prototype
Creating Prefabs
Getting ready
How to do it...
How it works...
Coding a scrolling background
How to do it...
How it works...
Adding platforms
Getting ready
How to do it...
How it works...
There's more...
Programming the character controls
Getting ready
How to do it...
How it works...
There's more...
Setting up an Animator
How to do it...
How it works...
Adding collectibles to the game level
Getting ready
How to do it...
How it works...
There's more...
Camera setup and controls
How to do it...
How it works...
There's more...
6. Game Scenes and the Graphic Interface
Introduction
The game manager
Getting ready
How to do it...
How it works…
There's more...
Loading a new scene at runtime
Getting ready
How to do it…
How it works…
Setting game exit conditions – character death
Getting ready
How to do it…
How it works…
Setting game exit conditions – goals met
Getting ready
How to do it…
How it works…
Using OnGUI() to display game data
Getting ready
How to do it…
How it works…
There's more...
Display the number of collected items
Getting ready
How to do it…
How it works…
Game Won and Game Over
Getting ready
How to do it…
How it works…
There's more…
7. Improving Your Gaming Experience
Introduction
Importing audio clips
Getting ready
How to do it...
How it works...
The Audio Source component
Getting ready
How to do it...
How it works...
There's more...
Coding audio
Particle systems
Getting ready
How to do it...
How it works...
There's more...
Instantiating a particle system at runtime
Getting ready
How to do it
How it works...
Game options – volume level
Getting ready
How to do it...
How it works...
Game options – toggling audio
Getting ready
How to do it...
Playing videoclips in the scene
Getting ready
How to do it...
How it works...
There's more...
8. Sprites, Spritesheets, and 2D Animation in Unity
Introduction
Setting up sprites
Getting ready
How to do it...
How it works...
There's more...
Multiple sprites
Getting ready
How to do it...
How it works...
There's more...
Animating with spritesheets
Getting ready
How to do it...
How it works...
There's more...
Preparing the character sprites
Getting ready
How to do it...
How it works...
Parenting sprites
Getting ready
How to do it...
How it works...
Keyframe sprite animation
Getting ready
How to do it...
How it works...
There's more...
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset