Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Gregory

I like the new revisions to the audio class. But I would I like to see it support some sound sprite sheet.

Any plans for this?

1 decade ago by Joncom

Curious. What is the reason to use this instead of separate audio files? Are there any significant advantages?

1 decade ago by FelipeBudinich

@Joncom

Download speed, if your game has lots of different sound effects, each server request is about 100-150 ms, multiply that for each sprite, sound effect, music file, and it adds up really fast (it's the main reason I'm using atlases for my sprites)

1 decade ago by Gregory

@Joncom

Like FelipeBudinich said. It's also nice if you have a game that has a lot of voice over, like an educational game for example (letters of the alphabet, ie). I rather just load one file instead of an easy 26+.

Once you tell the sound to play, you have it jump the appropriate position (audioElement.currentTime), and then have a interval check the position of the audio file, and if it's past that sound sprites duration you tell it to pause.

I might be able to write something up. But it will be sloppy as hell, and I really think this should be included in impact :D
Page 1 of 1
« first « previous next › last »