Monday, 29 November 2010

Unity Assignment

For this assignment the class was asked to create a Tic Tac Toe game within the Unity environment. We needed to use a variation of Javascript to create the game. As I have never used Javascript let alone Unity I found this quite daunting. I began by sourcing ideas for a theme for my game, I chose a medieval/regal theme for mine, so I began by getting a royalty free wooden texture and edited it in photoshop to use as the background to my game, I then worked on the other assets such as the X and O icons and borders.

My first task was to create a splash screen that when the start button is clicked it will initiate the game to start, I did this by creating a game object that when clicked will load the new scene which is the game board. I then needed to create a game object which would make the game exit when clicked. I did this by coding a quit texture to close the application when clicked.

For the game board scene I added the grid and positioned the boxes, i then coded it so that the border would appear when the mouse hovers over a box. I also created a code which would place the X and O icons in an alternate fashion while locking the squares so that they couldn't be changed with another click.

For the last part of the project i was supposed to create a winning scenario code and add sounds, but after days trying to figure out how to code both and several attempts nothing would work.

In reflection I felt like I was thrown in at the deep end with this assignment as I had never coded Unity script before. I felt I would have been able to complete the assignment if I'd had previous experience or more tutoring on the subject.

Followers