mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +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 GlobalSceneManager = require('../scene/global/GlobalSceneManager');
|
||||||
var TextureManager = require('../textures/TextureManager');
|
var TextureManager = require('../textures/TextureManager');
|
||||||
var TimeStep = require('./TimeStep');
|
var TimeStep = require('./TimeStep');
|
||||||
|
var SoundManager = require('../sound/SoundManager');
|
||||||
|
|
||||||
var Game = new Class({
|
var Game = new Class({
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ var Game = new Class({
|
||||||
* @memberOf Phaser
|
* @memberOf Phaser
|
||||||
* @constructor
|
* @constructor
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param {object} [GameConfig] - The configuration object for your Phaser Game instance.
|
* @param {object} [GameConfig] - The configuration object for your Phaser Game instance.
|
||||||
*/
|
*/
|
||||||
function Game (config)
|
function Game (config)
|
||||||
|
@ -132,6 +133,13 @@ var Game = new Class({
|
||||||
*/
|
*/
|
||||||
this.device = Device;
|
this.device = Device;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [description]
|
||||||
|
*
|
||||||
|
* @property {Phaser.SoundManager} sound
|
||||||
|
*/
|
||||||
|
this.sound = SoundManager.create(this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue