Programming and Audio Process


Hi everybody! 

Sergiu here to talk about how we did the coding and implemented the sounds in game. 

Programming 

Before adding anything code related to the game, we had to first design it so we know how exactly it should work in the game. If we didn’t design it first, it could be implemented in an unintended way and the team would have to spend time and effort to fix it, wasting valuable time.

One of the first scripts we made was the cooking script for the cooking machine. That script took me more than a week to make because small problems kept popping up as I was making it. It took me a while before I could find a solution in my head for how it should work. I also made it so anything that needs to be changed for balancing can be modified in the inspector so I wouldn’t have to go in the script to change it. We also made a habit of adding comments to the code so we would be able to see what it does and make it easier to bug fix in the future. Some issues with sprite sizing occurred too however they were quickly resolved by removing the empty space around the sprites.


Audio 

The sounds that are in the game right now were sourced by Conor from freesounds.org. Before we could use the sounds, we had to check the license of the sounds to make sure we legally in the clear. We did have to make some simple code to play the sounds at the right time. The only hiccup came when we needed to play 2 different sounds from the same audio source. We quickly fixed that problem by making the code to play sound also change the sound file being played.

Get Deep Space Diner

Leave a comment

Log in with itch.io to leave a comment.