Showing posts with label Skills. Show all posts
Showing posts with label Skills. Show all posts

Sunday, 14 February 2010

Unity Tutorials (Part Deux)

After I had completed the first tutorial (GUI essentials), I moved onto the next tutorial provided in the Unity documentation (called Scripting Essentials). The tutorial consisted of writing a javascript to make a light source target the First Person Controller, as if it were a moving spotlight. If the space bar is pushed, the target of the spotlight would change from the controller to a cube in the middle of the plane.

The second part of the tutorial involved writing a script that would instantise a cube prefab whenever the left mouse button was pushed, and setting its position to the current position of the First Person Controller.

Again, the tutorial was rather easy to work through, since using Unity is much easier than performing a similar process in XNA Gamestudio. The only major problems were getting the code right, but any mistakes were shown in the error log. The results can be seen below.

















Thursday, 11 February 2010

Unity Tutorials

Before going ahead and starting the development of the game, I first wanted to get to know the Unity interface together. To do this, I read through the Unity Basics guide as found in the Unity Manual. Once I had a brief understanding of the Unity interface, I proceeded to work through several tutorials explaining the basic functions of the Unity engine and GUI.

The first tutorial which I completed was the tutorial 'GUI Essentials' which is found in the provided documentals. Working through the tutorial, I was relatively comfortable with how things are done in unity, and the fact that the game view is updated in real time it a nice feature.

The tutorial itself consisted of creating a plain, with a cube placed onto it. The cube was then duplicated several times to form a stack,slightly scewing them so that the stack would fall over. Also, a first controller was added so that the player can navigate the plain, interacting with the cubes. The results from this tutorial have been posted below.