Wednesday 25 March 2015

Adding Music to Our Game


This is how we put music into our game.

I went onto YouTube to gather some Music.
For our game we wanted to have music to add to the atmosphere that you get when you are playing it. We originally wanted to get a composer from a partner university to create some music for us, so everything in the game would be original. Unfortunately this didn't happen in the end, and we had gather files off of Youtube to put in our game, We acknowledged third party content.


I then created a code to add the music into the game once its playing.
Once we had the files that we wanted, I created a piece of code that would start playing the music as soon as you were in game. It is also set so that when you are in the menu, the music will loop, so it wont cut out at any time. This is also in game.

The Music is being played.
The music is set as 2-D, This means that when you play, the volume of the sound is consistent, If it were 3-D the sound will change depending on where you were in the game. These apply more to sound effects, like bullets whizzing past.


No comments:

Post a Comment