Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

View Project on GitHub Download Pixel.js (v0.9b)

Engine.playSound Method

Plays a registered sound.

Parameters

Name Description
key The key / name of the sound to play.

Examples

Supported Platforms

Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.

The audio file formats supported varies between browsers. For a full list of formats and support visit http://www.w3schools.com/html/html5_audio.asp.