mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
added sound property representing SoundManager instance to Game class
This commit is contained in:
parent
21497937ea
commit
9300fd3b7c
1 changed files with 9 additions and 1 deletions
|
@ -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]
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue