Franklin

Learning Unity 2D Game Development by Example.

Author/Creator:
Pereira, Venita.
Publication:
Olton : Packt Publishing, Limited, 2014.
Format/Description:
Book
1 online resource (339 pages)
Status/Location:
Loading...

Options
Location Notes Your Loan Policy

Details

Other records:
Subjects:
Unity (Electronic resource).
Computer games -- Programming.
Real-time programming.
Computer graphics.
Form/Genre:
Electronic books.
Summary:
If you are interested in creating your very own 2D games from scratch, then this book will give you all the tools you need to succeed. Whether you are completely new to Unity or have used Unity before and would like to learn about the new 2D features of Unity, this book is for you.
Contents:
Intro
Learning Unity 2D Game Development by Example
Table of Contents
Learning Unity 2D Game Development by Example
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
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code and colored images
Errata
Piracy
Questions
1. Getting to Know Unity
Overview
Game development's background
Introducing Unity
Setting up Unity
Creating a new 2D project
Unity Editor interface
Toolbar
Scene View
Game View
Project Browser
Creating assets
Searching assets
Setting favorites
The Unity Asset Store
Importing assets
Hierarchy
Parenting
Creating GameObjects
The Inspector
Adding components
Extra Views
Console
Animation
Sprite Editor
Animator
Profiler
Summary
2. Setting the Scene
Overview
What is a background?
Two methods to set a background
Setting a background using a static image
Importing our asset
Sprite settings within the Inspector
Texture Type
Sprite Mode
Packing Tag
Pixels to Units
Pivot
Filter Mode
Platform Settings
Max size
Format
Applying our settings
Assigning our asset to a GameObject
The toolbar method
The quick alternative method
GameObject Inspector settings
Position background
Color background
Layer background
Setting a background using a tileset
Seamless textures
Corner pieces
The grid settings
Creating a prefab
The resulting environment
Camera settings
Setting the foreground
Summary
3. Add Some Character
Overview
What is a sprite?.
Creating a sprite
Image editing software
Sprite sheet
Raster versus vector
File formats
Importing a sprite
Slicing sprite sheets
Sprite Editor
Manual slicing
Adding and removing a selection area
Toolbar controls
Automatic slicing
Slicing type - automatic
Slicing type - grid
Texture atlasing
What is a texture atlas?
Sprite packer
Adding our character
Sprite Renderer
Animating a sprite
Animation Editor
Dopesheet 2D animation
Animator
Summary
4. Code Control
Overview
Why do we need code?
Programming languages
Levels of programming languages
Machine language
Assembly language
High-level languages
Scripting languages
UnityScript versus C# versus Boo
Code fundamentals
Data types
Operators
Functions
Conditional statements
If...else
Using comments
Classes
Private versus public
Importing external libraries
Code editor
Hello world
Controlling the character
Destroying the enemy
Coroutines
Namespaces
Unity Scripting Reference
Summary
5. What's Your Input?
Overview
Input versus output
Input in games
Output in games
Input types
Output types
Visual output
Audio
Controller vibration
Unity Input Manager
Detecting input
Buttons
OnGui
GUILayout.Button
Game controls
Raycasting
Summary
6. Game #1 - Roguelike
Overview
What is Roguelike?
Adding a background
Animating the hero
The Walking Down animation
The Walking Left animation
The Walking Right animation
The Walking Up animation
Movement controls
Movement Controls Animator
Movement controls script
Randomly spawning enemies
Animating the enemy
Enemy movement
Shooting projectiles
Detecting collisions
Permadeath
End game result
Summary.
7. Game #2 - Classic Arcade
Overview
Sponge antics
Our main character - Spongy
The bathroom
Adding Spongy
Moving left and right
Spawning grime
Spawning acid
Game conditions
Lives
Score
Time
Adding an HUD
Font style
Resource management
The completed game
Summary
8. Game #3 - Endless Runner
Overview
Infinite
An agile ninja
The ninja character
Running
Jump and Slide
Add Animator parameters
Animator states and transitions
Movement controls
Randomly repeating obstacles
Survival
Parallax scrolling
Add pizzazz with particle effects
Displaying the timer
The result
How to expand the game?
Summary
9. Game #4 - Physics Fun
Overview
The basics of physics
Physics found in the real world
Physics 2D
What is Box2D?
Steps to create bodies
Let's simulate the world
The environment
Creating the scene
Creating the background
The foreground
Adding the props
Adding the crate
Adding the plank
Shooting the cannonballs
Creating the cannonballs
The final result
How do we extend it?
Summary
10. You Are Ready!
Overview
Audio
Music
Sound effects
Saving and loading
Creating a trigger
Cameras
Multiplayer
Putting it all together
The first scene
The galaxy
Platforms
Triggers
The lava
UFO beam
Adding audio
The camera
Saving and loading
Space Buddy the alien
Space Buddy script
Positioning
The second scene
The final result
Deployment
Your journey ahead
A plethora of resources
Online resources
Offline events
Free resources
Hosting games
Social media
Summary
Index.
Notes:
Description based on publisher supplied metadata and other sources.
Local notes:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2021. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Other format:
Print version: Pereira, Venita Learning Unity 2D Game Development by Example
ISBN:
9781783559053
9781783559046
OCLC:
889999284