更新时间:2021-07-16 12:37:13
封面
版权信息
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Chapter 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
Chapter 2. Project A – the Collection Game Continued
Creating a coin material
C# scripting in Unity
Counting coins
Collecting coins
Coins and prefabs
Timers and countdowns
Celebrations and fireworks!
Play testing
Building
Chapter 3. Project B – the Space Shooter
Looking ahead – the completed project
Getting started with a space shooter
Creating a player object
Player input
Configuring the game camera
Bounds locking
Health
Death and particles
Enemies
Enemy spawning
Chapter 4. Continuing the Space Shooter
Guns and gun turrets
Ammo prefabs
Ammo spawning
User controls
Scores and scoring – UI and text objects
Working with scores – scripting with text
Polishing
Testing and diagnosis
Chapter 5. Project C – a 2D Adventure
A 2D Adventure – getting started
Creating an environment – getting started
Environment Physics
Creating a player
Scripting the player movement
Optimization
Chapter 6. Continuing the 2D Adventure
Moving platforms
Creating other scenes – levels 2 and 3
Kill zones
The UI health bar
Ammo and hazards
Gun turrets and ammo
NPCs and quests
Chapter 7. Project D – Intelligent Enemies
An overview of the project
Getting started
Terrain construction
Navigation and navigation meshes
Building an NPC
Creating patrolling NPCs
Chapter 8. Continuing with Intelligent Enemies
Enemy AI – range of sight
An overview of Finite State Machines
The Patrol state
The Chase state
The Attack state
Index