Click on the blue cube - it will play the complete audio file. Note the order of sounds - scream comes before the male and them female footsteps. When the file has finished playing (end of the creaking door), click the cube again - now two lots of footsteps together followed by a scream.
Now for files for DK : Sounds.zip It contains the audio file with the sounds and a little text file that gives the start point and length of each little sound in the file
The file takes me back a long way. It comes from a VRML multiplayer world I created years ago for Blaxxun. More than one lady got a big scare!
So six sounds in one file. If you need anything else let me know, and good luck David, though you probably don’t need any
Can I store that audio file on the playground? Is there any license associated with it?
I made the file about 2002 -quite a few years ago!. It was built from bits of audio files available as “public domain” or an early version of CC licence. I never purchased any sounds - I always used free stuff. The files were combined 17 years ago (Windows 98!!) so I have no idea any more as to where they actually came from anymore or what the exact licence type was.
You are certainly welcome to use them for the PG - but perhaps I should build a new file with PD sounds?
Well basic code seems to work - just a couple of issues:
In the basic sound file load, the offset and length seem to be defined in “milli” seconds (see sound docs) , but if you want to call a particular sprite elsewhere in the code, you define that sprite call in seconds - had me tearing my hair out.
If you want to play two sprites at the same time and they are a different length then the length used for both sprites is the one that is longer (or seems to be).
@Deltakosh : In the meantime, I kind of tricked the current commit to play something like my original demo with Howler.Js. You just get the extra “foghorn” before the “scream”, and of course that bit of the “creaky door” . Just tested it - no creaky door - you have fixed something David
I made some time ago a shell process which was going through a folder with sound files in it in order to merge them in one file only and which generated a json beside with the start (in milliseconds) of every sound. The idea was to optimise the load time of the sounds online of course.
Unfortunatly I lost that shell file when my computer crashed a year ago. And I got stuck with the same sound in the Wazana.io game since.
Those sound sprites will definitely help to update them now!