Yao-class-cpp-studio / GameX

0 stars 73 forks source link

[feat] (Incomplete) Sound Play! #101

Open EnderXie23 opened 7 months ago

EnderXie23 commented 7 months ago

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?

Link to the pull request: #98

Ackowledgements to pixabay.com for their free audio files.

EnderXie23 commented 7 months ago

This is a demo of soundplay in the game. (Might be a bit noisy when I accelerate/brake) https://github.com/Yao-class-cpp-studio/GameX/assets/142194629/81ea4846-0533-4382-9656-a7bb3d0aaa80

lemonchu commented 7 months ago

That's awesome!