Monday, 10 November 2014

Workshop Week - Unity - Interactive Design Development


Unity is a piece of software that can create games, interactive environments, apps and export these not only to windows exe but also as Mac apps and various other formats such as those comparable with android. Unity is commonly used for games development and can be used for 2D games as well as 3D.

Unity Interface

As shown in the screen grab above we can see the different toolbars and option menus. To the top left we have the hierarchy, this shows all objects used within the scene. This can make it a lot easier to find your objects, by allowing you to double-click on any object, to get sent to the area it resides within. To the right hand side is the inspector panel, this shows you all the properties of each element when selected.

To create my experimental movement “game”, I first created a new project with no extensions; as for this task I didn’t require extensions.

Coding

In order to create an app, or game per say it is required that you have a reasonable amount knowledge of coding for the software in use. Below you can see a variation of commands, which I used to create my small test game.

Character Animation Controls - Coding

Int = Whole number
Float = Point number such as 1.2
Script lines = always need to end in a semi-colon or it won’t recognize the code as part of the program. This can be useful if you want to add notes in your coding without it affecting the actual programming.
Void Start = executes a command once
Start Update = executes the command constantly, on a loop.
Capital and non-capital letters = This affects the workings of the code and so is very important.
Vector3 = is a variable command
If Statement = if a condition exists then do this(next command) – see below
If(){} = if this (situation) exists produce this {Result}
Prefabs =library models
Instantiate = creates a multiple of the mentioned object.

Assigning Colour and Material
Using these commands and other directions such as “GetKeyDown” I learnt how to create very basic coding for moving a character or object and to texture the “world’s” terrain as well as apply gravity to the objects. 

Also a useful tip to add for if you want to make dormant a line of code or just have a comment within the coding(this can be used to help gauge your way around the coding later) you can "comment out" lines of text. To do this you simply input the following: /* (example text) this text now isnt included with your active coding */



Texture Covered "Hills"



I used textures from the below websites to decorate the object’s material. 


Review of Unity Workshop

Overall I found this Workshop to be of use for if I proceed to create any android like applications and/or games which require not just graphic design skills but also that of programming. Furthermore I found the interface of Unity to be quite intuitive in terms of finding your way about and with the right amount of training and practise I believe I could get to grips quite well with this software. However for the meantime I will concentrate on my graphic and animated graphic works.


The Test Game


I have created a .app file for Mac users and an .exe for Windows, enjoy. I have named this game "Mountain Man", keep in mind that there isn't an aim to the game as such as it is merely a gravity and movement test.

If you would like to see and test my experimental creation for yourself, please see the links below:


Controls:
To activate the character animations: down - g, right - f, left - h
To create and move rock balls: up-w, down-s, right-d, left-a, fire rock balls-q