Sheep Quest Devlog 7


In this devlog I added audio to the game, including a movement / footstep script that plays different sounds based on what tile the player is traveling over.


The new option button in the main menu opens a panel that allows the player to adjust the volume of music and sound effects separately.


The manager is a singleton that uses an AudioMixer with exposed volume parameters for music and sound effect channels. 

The sliders on the UI panel call functions that set the volume of their channels.


The AudioManager also controls the visibility of the panel that controls volume levels and is called on to play various tracks of music.


The MovementSound script gets the tile at the players position and by comparing its name sets the currentGroundType accordingly. If the player is moving and the AudioSource is not playing call PlayMovementSound.


Depending on the current ground type randomly pick a sound from the list of associated sounds and play.

Leave a comment

Log in with itch.io to leave a comment.