Re: Play sound in game .
t is probably doable to let people customize the sounds somehow. Then the engine can play the sound if the file exists, and do nothing otherwise.Mr.Chaos wrote:But any more soundeffects would probably get cheesy real quick, no matter how funny the "ouch" thing is at first.
So my advise would be to keep them simple and not over use them.
In Wagic there is a sound effect when a card comes in play (based on its type or abilities), it actually helps a lot to recognize what kind of card just entered the game.
Example here:
http://www.youtube.com/watch?v=ZZCjg63z2Yw
And example here for the "customization" part:
http://www.youtube.com/watch?v=H2kKI4Zb8Lc
(go to the middle of the video - sorry for the sound normalization issue...)
The code for that is very simple: take (one of) the subtypes of the card. If a file with the name [subtype].wav exists in the audio folder, play it when the card comes into play.
That kind of stuff...

