售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Unity 5.x By Example
Table of Contents
Unity 5.x By Example
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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
Downloading the color images of this book
Errata
Piracy
Questions
1. The Coin Collection Game – Part 1
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
2. Project A – the Collection Game Continued
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
Summary
3. Project B – the 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
Summary
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
Building
Summary
5. Project C – a 2D Adventure
A 2D Adventure – getting started
Importing assets
Creating an environment – getting started
Environment Physics
Creating a player
Scripting the player movement
Code Sample 5.1
Optimization
Summary
6. Continuing the 2D Adventure
Moving platforms
Code Sample 6.1
Creating other scenes – levels 2 and 3
Kill zones
Code Sample 6.2
The UI health bar
Code Sample 6.3
Ammo and hazards
Gun turrets and ammo
NPCs and quests
Code Sample 6.8
Summary
7. Project D – Intelligent Enemies
An overview of the project
Getting started
Terrain construction
Navigation and navigation meshes
Building an NPC
Code Sample 7.1
Creating patrolling NPCs
Summary
8. Continuing with Intelligent Enemies
Enemy AI – range of sight
Code Sample 8.1
An overview of Finite State Machines
Code Sample 8.2
The Patrol state
Code Sample 8.3
The Chase state
Code Sample 8.4
The Attack state
Code Sample 8.5
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜