Skip to content

Small library for playing sounds in games (like those written in 3D Game Programming for Kids!)

License

Notifications You must be signed in to change notification settings

eee-c/Sounds.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sounds.js

Small library for playing sounds in games (like those written in 3D Game Programming for Kids!)

Support several sounds:

Sounds.bubble.play();
Sounds.buzz.play();
Sounds.click.play();
Sounds.donk.play();
Sounds.drip.play();
Sounds.guitar.play();
Sounds.knock.play();
Sounds.scratch.play();
Sounds.snick.play();
Sounds.spring.play();
Sounds.swish.play();

In addition to play(), each sound can be repeated (and stopped):

Sounds.click.repeat();
setTimeout(function() {Sounds.click.stop();}, 1000);

Can be imported from the gamingjs.com site with:

<script src="http://gamingjs.com/Sounds.js"></script>

About

Small library for playing sounds in games (like those written in 3D Game Programming for Kids!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published