Game Development Reference
In-Depth Information
Creating our first scene
With these requirements in mind, let's build the framework:
1. Create a plane, positioned at (
0
,
0
,
0
), and name it
ground
.
2. Under
Edit
|
Render Settings
, go to the
Skybox Material
panel of the
In-
spector
pane, and add one of the skybox materials from the skybox package.
3. The
GameObject
drop-down menu is where you can select different types of
basic Unity3D objects to populate your world. Create a directional light to the
scene from
GameObject
|
Create Other
, and place it at (
0
,
10
,
0
) for readabil-
ity. Set its orientation to something like (
50
,
330
,
0
) to achieve a neat shading
effect on the player capsule. In our world, the
y
axis will mean "in the air" and
the x and z axes will correspond to the horizontal plane of the world.
Congratulations! You have created the testbed for this chapter. Now let's add the char-
acter system.