Now we are able to enjoy sound in the gaming process. The use of a third-party library (irrKlang) is included. However, I only implemented the sound playing functions on Windows, and the player will have to install this library firsthand.
Since the "asset" directory has access limitations, I cannot add audio files to this directory. Currently, I don't quite understand how to use the asset management system, so I tried a relative-path solution which may not work for every computer/IDE. Might anyone help with this?
Ackowledgements to pixabay.com for their free audio files.
Now we are able to enjoy sound in the gaming process. The use of a third-party library (irrKlang) is included. However, I only implemented the sound playing functions on Windows, and the player will have to install this library firsthand.
Since the "asset" directory has access limitations, I cannot add audio files to this directory. Currently, I don't quite understand how to use the asset management system, so I tried a relative-path solution which may not work for every computer/IDE. Might anyone help with this?
Ackowledgements to pixabay.com for their free audio files.