How you make your first video game in Unity3d

The unity 3d game engine allows you to make games for iPhone, mac and pc

etc.A user can download.The good news is that the basic version is free. A user can Download fully functional version of  Unity3d for nono-commerical use for free from unity3d.com.

Once you download and install it run the Software, after execution It opens up angry robot demo by defults.

You need to download all resource files from unity web site. You can download first person shooter game source file from this link file name is FPS_Tutorial.zip.

Starting with very basic step i.e. Terrain

Terrain is the ground, filed, land, soil. So Terrain is the place or platform where you make a game.

Create a Terrain

Open up unity3d game engine and go on file tab and click on a new scene .after that go to the Terrain tab and click on the create terrain it simple and easy . If your terrain is too big you can set its size by Clicking on Terrain tab go to set Resolution.Now your terrain is ready as you want.

Add a light

Add a light on a terrain is so easy. Just open the Game object tab than go to create other and simply Select the light style from here and adjust it at any point where you want by moving through the vector Arrows red, green and blue on the light. You can also increase and decrease the intensity of light through inspector Colum which can be visible near the Hierarchy and project Colum. The Inspector displays detailed information about your currently selected Game Object.

Add a texture of the land

Selecting the terrain from the Hierarchy Colum.

Than go to the inspector Colum which displays detailed information about your currently selected terrain .From here you pick the paint terrain texture button

Then click on the edit texture

A new window is open click on the dropdown (picture) and selects the texture for the terrain.

Add trees in a Terrain

To add trees in a terrain first select the terrain from Hierarchy Colum after that go to inspector Colum

And pick the place tree button than go to click the edit texture button at here a new box is open i.e. add tree. In this box select the (bend factor = 1) and click on the dropdown button and select the tree. You can also change the brush size, tree density, tree width, tree height from inspector Colum.

functional of Unity 3d for non-commerical use for free. Once you download and install it. It opens up with basic island demo.

You need to download all resource files from unity web site. You can download FPS_Tutorial.zip.

And all other packages which you need to make a game.

Starting with very basic step i.e. Terrain

Terrain is the ground, filed, land, soil. So Terrain is the place or platform where you make a game.

Create a Terrain

Open up unity3d game engine and go on file tab and click on a new scene .after that go to the Terrain tab and click on the create terrain it simple and easy . If your terrain is too big you can set its size by Clicking on Terrain tab go to set Resolution.Now your terrain is ready as you want.

Add a light

Add a light on a terrain is so easy. Just open the Game object tab than go to create other and simply Select the light style from here and adjust it at any point where you want by moving through the vector Arrows red, green and blue on the light. You can also increase and decrease the intensity of light through inspector Colum which can be visible near the Hierarchy and project Colum. The Inspector displays detailed information about your currently selected Game Object.

Add a texture of the land

Selecting the terrain from the Hierarchy Colum

Than go to the inspector Colum which displays detailed information about your currently selected terrain .From here you pick the paint terrain texture button

Then click on the edit texture

A new window is open click on the dropdown and selects the texture for the terrain.

Add trees in a Terrain

To add trees in a terrain first select the terrain from Hierarchy Colum after that go to inspector Colum

And pick the place tree button than go to click the edit texture button at here a new box is open i.e. add tree. In this box select the (bend factor = 1) and click on the dropdown button and select the tree. You can also change the brush size, tree density, tree width, tree height from inspector Colum.

Add Mountains

To add Mountains in a terrain first select the terrain from Hierarchy Colum after that go to inspector Colum and pick the Rise/lower terrain after that pick the brush size and  put the mouse on the scene

Press and hold the left mouse button and move the mouse up and down and see the results. If you need any change just press and hold the left mouse button with shift key.


Add sky box

To add sky box first go to the Assets tab than  go to import package and select the sky boxes. If you have already the sky boxes in your project Colum than skip from this step.

After importing the package go to Hierarchy and select the main camera than go to the component tab

Go to the sub link i.e. rendering from here select the skybox as the component of main camera

Adding the first person controller

To add the first person controller in the game view .just go in project Colum or panel and use the search button and type the first controller this bring you the first person controller prefab. We explain you about prefab in detail later on. The first person controller is given to us by unity to make game quickly and easily.  You just simply drag first person controller prefab into the scene view.

Adding the weapon

To add the weapon to first person shooter first we go to the project panel and go to the object folder

And open the weapons folder and select the Gun as a weapon and drag it into the scene view. After that

Go to the Hierarchy panel click on to the Gun and drag it into the main camera as child object of main camera the reason  is if the Gun is the child object of main camera it will follow the player all time.

 

Advertisements