Tuesday, 21 July 2015

Development of the game in Unity

I  chose to do it in Unity because I wanted to challenge myself a little bit instead of using Flash which I've used before and done something similar. 



I created one scene for the room and a scene for each of the book pages. I also sorted my assets into three different folders for scripts, sprites and audio files.


Each 'interactable' object in the game is a button with a sprite as the source image. When the player is hovering with their mouse over one of the buttons it shows a glow effect around it. I set this up using the Sprite Swap transition with a second sprite of the object that has a glow around it.












Since the 'interactable' objects in the game are UI buttons I had to change the Render Mode of the Canvas to World Space so I could move the buttons to the appropriate position on the background. This also helped to avoid UI scaling that would change the position of the buttons depending on the resolution of the screen or the game window.



I used a script to switch between scenes. Each object switches to a particular book page.


I did that by creating an empty game object which I called SceneChanger. I then added the script to it and added it to the On Click list of each button. I simply had to type in the name of the scene that the button should switch to.




Each book page is a scene with the sprite of the page and one button that closes the page and switches back to the scene of the room and a forward/back button to flip the pages.














I also added some background music for the room to create an Italian, Renaissance-esque atmosphere, even though the scene is set in Cyprus, the characters are Italian. I also used a short audio clip that is played when flipping the book page for more immersive game play.

This is where I found the background music http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1400023

And here is where I found the page flip http://www.soundjay.com/page-flip-sounds-1.html



Additionally, I also added a particle effect to the candle for it to have an animated flame, again, lending to the immersion and credibility of the scene. 


Asset list for the scene

Below are the assets I made and inserted into the scene in Unity. 















The buttons to navigate and close the pages:

















I had difficulty with the font in Photoshop, as after the first two pages were done, the font started to mess up and when I pasted or typed it would be on top of itself, so I had to guess where the next line would start and insert more breaks than I should have had to. This is why there are perhaps some inconsistencies in the text, but I don't think it shows too much.

I used the font Aquiline Two, found here http://www.fontsquirrel.com/fonts/Aquiline-two