Causality

Hi I’m the producer and lead AI programmer on team Yggdrasil that is currently developing the game Causality.

 

Working with AI has been really fun and what a challenge it has been.

I will finally write about the sound manager we implemented for our AI.

It’s a simple script that created audio sources on its parent Game object and loads audio clips from the resource folder.

Multiple audio sources was necessary in order to play multiple sounds at the same time, as an example:

The boss runs towards the player -> play footsteps while

the boss Swings his axe around -> play axe swing sound while

the boss roars with vigour -> play roar sound

To know when to play what sounds this script was passed as a reference to my other script that contained all important data that was passed to all the states and behaviours of the boss. So that each state did not need to create it’s own duplicates of data that was shared among all other scripts.

Then to play the correct sound I used enums to check what was supposed to play and call a play function.

There are probably thousands of ways to improve this or do it better but we were closing in on our deadline for the game to be finished and this was the fastest and first idea I came up with to solve our sound issues.

 

About joni nikander

2015 Game Design