Unity 3.x Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

The wonders of technology!

Unity contains terrain tools that let you model your level right inside the software. It contains a readymade First Person Controller Prefab object you can plunk into the world with automatic WASD keyboard controls that will allow you to explore the terrain, or you can replace the AngryBots hero with your own character to build a third-person game. Unity automatically takes care of the rendering (drawing), collisions, physics, and sound effects. That's one fancy hammer!

Tip

Wide-open worlds with Will

If you'd like to learn how to sculpt your own terrain in Unity, and to add 3D models, sounds, and interactivity to create a simple but functional 3D open-world game, check out, Unity 3.x Game Development Essentials, Will Goldstone, Packt Publishing.

Much of what you see in the AngryBots Demo can't be built directly in Unity. Most of the assets were created with other software; Unity is the program you use to put everything together and to make it interactive. The demo contains special models, such as the airlocks, which were imported from 3D software packages like 3D Studio Max, Maya, or Blender. Certain elements, such as robot enemies, have scripts attached to them. Scripts are lists of instructions that tell the items in the game world how to behave. Throughout the book, we'll learn how to import 3D models and to write scripts to control them.

Let's take a quick look around the Unity interface and note a few points of interest.