If in debug mode, add to window

This commit is contained in:
Richard Davey 2022-10-28 17:53:41 +01:00
parent b374ce6b1c
commit 1657f9e843

View file

@ -381,6 +381,11 @@ var Game = new Class({
this.textures.once(TextureEvents.READY, this.texturesReady, this);
this.events.emit(Events.BOOT);
if (typeof WEBGL_DEBUG && window)
{
window.PHASER_GAME = this;
}
},
/**