3D Game Programming

(C. Jardin) #1
Sounds.bubble.repeat();
setTimeout(function(){Sounds.bubble.stop();}, 5*1000);

The preceding would start repeated bubble sounds. After 5 seconds, the
timeout function is run, stopping the repeating bubble sounds.

Appendix 2. JavaScript Libraries Used in This Book • 278


Prepared exclusively for Michael Powell report erratum • discuss

Free download pdf