Game Development Reference
In-Depth Information
8. Enter the parameters as follows:
For Element 0 type Background , for Element 1 type Floor , for Element 2 type Wall ,
and then for User Layer 8 type Background , for User Layer 9 type Level ; we select
our Background object, and then go back to the Background object's Inspector
view setup as follows:
Tag : Background
Layer : Background
9. Set the Main Camera , which is already in our scene when we first create the project,
as follows:
Position : x: 0 , y: 0 , z: -20
Projection : Perspective
10. To light up our scene by adding sound light into it, go to GameObject | Create Other
| Directional Light and set its parameters as follows:
Rotation : x:20 , y:0 , z:0
11. For the last step, we will create our quick, easy, and simple level:
First, we need to create our container to contain all the objects for the level.
Go to GameObject | Create Empty or use Command + Shift + N in Mac and
Ctrl + Shift + N in Windows, and change the name to Level , and reset the
transform posiion to X: 0 , Y:0 , Z: 0 ), rotaion to X: 0 , Y: 0 , Z: 0 , and scale to
X: 1 , Y: 1 , Z: 1 .
For creaing our loor, let's go to GameObject | Create Other | Cube ,
change the name of this object to Floor , and change the tag and layer as
follows:
F Tag : Floor
F Layer : Level
Same thing for creaing a wall; just repeat the same step
and change the name to Wall , and set the tag and layer
as follows:
F Tag : Wall
F Layer : Level
 
Search WWH ::




Custom Search