added sound property representing SoundManager instance to Game class

This commit is contained in:
Pavle Goloskokovic 2017-11-09 14:41:23 +01:00
parent 21497937ea
commit 9300fd3b7c

View file

@ -17,6 +17,7 @@ var GlobalInputManager = require('../input/global/GlobalInputManager');
var GlobalSceneManager = require('../scene/global/GlobalSceneManager');
var TextureManager = require('../textures/TextureManager');
var TimeStep = require('./TimeStep');
var SoundManager = require('../sound/SoundManager');
var Game = new Class({
@ -29,7 +30,7 @@ var Game = new Class({
* @memberOf Phaser
* @constructor
* @since 3.0.0
*
*
* @param {object} [GameConfig] - The configuration object for your Phaser Game instance.
*/
function Game (config)
@ -132,6 +133,13 @@ var Game = new Class({
*/
this.device = Device;
/**
* [description]
*
* @property {Phaser.SoundManager} sound
*/
this.sound = SoundManager.create(this);
/**
* [description]
*