Monday, 9 February 2015

Interactivity: Scripting and Project Start

After a quick refresh session of the unity software we explored coding in C# a bit more, and tried to finish off the Cat and Mouse script:


We also tried to create a script that changes a cube's color to random color every time it's clicked. To do this we learned about the "void OnMouseDown ()" function that's called every time an object with the attached script is clicked. This caused a random color to be stored in a Vector3 variable, and then the material color was assigned to that variable.

After learning about scripting and how it works and it's function, we started our project which was to make a space shooter  game. We started off with the build of our game, getting the spaceship and camera into position and changing the build settings to a web game.

No comments:

Post a Comment