更新时间:2021-07-16 18:15:44
封面
Unity 2018 By Example - Second Edition
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is Searching for Authors Like You
Preface
Who this book is for
What this book covers
To get the most out of the book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Chapter 1. Unity Fundamentals
Game design
Getting started – Unity and projects
Projects and project folders
Importing assets
Starting a level
Transformations and navigation
Scene building
Lighting and sky
Play testing and the Game tab
Adding a water plane
Adding a coin to collect
Summary
Test your knowledge
Further Reading
Chapter 2. Creating a Collection Game
Creating a coin material
C# scripting in Unity
Counting coins
Code Sample 2.3
Collecting coins
Code Sample 2.5
Coins and prefabs
Timers and countdowns
Code Sample 2.6
Celebrations and fireworks!
Code Sample 2.7
Play testing
Building
Further reading
Chapter 3. Creating a Space Shooter
Looking ahead – the completed project
Getting started with a space shooter
Creating a player object
Player input
Code Sample 3.1
Configuring the game camera
Bounds locking
Code Sample 3.2
Health
Code Sample 3.3
Death and particles
Code Sample 3.4
Enemies
Code Sample 3.6
Code Sample 3.7
Code Sample 3.8
Enemy spawning
Code Sample 3.9
Chapter 4. Continuing the Space Shooter
Guns and gun turrets
Ammo prefabs
Code Sample 4-1
Ammo spawning
Code Sample 4.2
Code Sample 4.3
User controls
Scores and scoring – UI and text objects
Working with scores – scripting with text
Code Sample 4.4
Polishing
Testing and diagnosis
Chapter 5. Creating a 2D Adventure Game
A 2D Adventure – getting started
Creating an environment – getting started
Environment Physics
Creating a player
Scripting the player movement
Code Sample 5.1
Optimization