mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38: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 TextureManager = require('../textures/TextureManager');
|
||||
var TimeStep = require('./TimeStep');
|
||||
var SoundManager = require('../sound/SoundManager');
|
||||
|
||||
var Game = new Class({
|
||||
|
||||
|
@ -132,6 +133,13 @@ var Game = new Class({
|
|||
*/
|
||||
this.device = Device;
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @property {Phaser.SoundManager} sound
|
||||
*/
|
||||
this.sound = SoundManager.create(this);
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue