Do you know where your variables are? | |
PerlMonks |
How can I make sounds in my Perl game scripts?by apprentice (Scribe) |
on Oct 08, 2004 at 13:40 UTC ( [id://397645]=perlquestion: print w/replies, xml ) | Need Help?? |
apprentice has asked for the wisdom of the Perl Monks concerning the following question:
Hi Fellow Monksters,
I've been writing a game (yet another perl minesweeper) as a way of teaching myself Perl/Tk and have come to the part where I want to add sounds for various actions: - ticking sound for the clock/timer - click sound (harder than the ticking) for mouse clicks - harsh buzzer or explosion for clicking on a mine - ding-ding-ding or some other appropriate sound for winning I know I can play a bell sound by printing "\a", but it isn't that great and I'd like to play better sounds. I do what it to be cross-platform compatible if possible, i.e., both MS and *NIX. I have searched CPAN and the various 'SOUND' modules there seem to be platform-specific and I have not found any good examples. Therefore, I am asking for the wisdom of the Perl adherents who have gone this way before. What say ye? What modules have you used or methods devised for making/playing such sounds? Can you point me to any script examples? Are there any cross-platform solutions? I am your humble supplicant. "Peace, love, and Perl...well, okay, mostly just Perl!" --me Apprentice
Back to
Seekers of Perl Wisdom
|
|