Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro โ€” $3/month.

#Pong - Devlog 3 - Now with sounds

#Pong - Devlog 3 - Now with sounds

snnooze
snnooze
snnooze's Blog ยท ยท 1 min read
537 0

As said in the previous post, adding sounbds could be interresting and... that was a little more complex than I thought ๐Ÿ˜€

What's the problem ?

As I already have used music at the start of the game I taught the "sounds" in SFML uses something similar but that was not the case.

After having read the doc I tried to add a first sound and that doesen't work at all. With the help of RmbRT I could understand where the problem was but trying to correct the problem lead me to another and he gave me again a solution.

I added 2 sounds and finally for the third, I again have a problem but after some tries I finally find how to be able to have my third sound (but not necessary understood why my third sound causes problems ^^ ).

The result

If you hit play on the video you'll heard the result.

Now I have to put the settings in place to be able to choose the sound and music levels and choose in between a classical way of play and what I call an "Endurance" way/mode that will fill the Highscores section.

That all for today,

Have a nice day ๐Ÿ™‚

Discussion

Loading comments...