We have, for the time being, attached sounds to the following events:
- A player joining a game- Cards are shuffled and dealt
- The current hand is ready to start
- A new message is received on chat
- Someone has passed his turn (in a Trix hand)
- It is your turn to play
- An important card has been played (such as the King of Hearts in a King or Complex hand, or a Queen in a Queens or Complex hand)
To include the sounds, we have chosen to use Adobe Flash. A small hidden 1-pixel Flash movie is included in the page, and is used to dynamically load and play sounds. The Flash was built to be generic, which allows us to add more sounds without having to edit the movie itself.
One nice thing we did is make sure everything works OK if you don't have the Flash plugin installed. Well, you won't be hearing any sounds, but you will still be able to use all other aspects of the website without any problems. This complies perfectly with our goal of making Jawaker work without the need for any downloads.