adding sound effects in Phys2d
I'm new to game programming. Currently I'm working on Phys2d to make some physics related simulations. i.e. two Balls colliding, object moving on surface with certain friction etc etc.
Now I want to add some sound effects in it. it plays collision sound when two balls collide with eachother.
I don't know how to do that. Could anyone pls guide me to accomplish this.
Thanks in advance.
Re: adding sound effects in Phys2d
Step one is to figure out how to set up events when two bodies collide. Step two is to figure out how to play sounds. Get the first part working, then worry about the second part.