Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

Engine.createSound Method

Creates and registers a new Sound.

Parameters

Name Description
name The unique name to associate with the Sound.

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.