Multiple, Random Sounds for Thrusting, Winning, and Losing

To expand on my game a little, I wanted different sounds every time you either died, won, or used the thrusters. In order to do that, I took some of the knowledge we acquired from the last lesson and applied it here. By making a list for win sounds, lose sounds, and thrust sounds, I was able to randomly get a different sound for each scenario. Now every time you die, you won’t have to hear the same sound over and over again!

image

Privacy & Terms