phaser-ce
Version:
Phaser CE (Community Edition) is a fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
52 lines (45 loc) • 1.29 kB
JavaScript
/**
* @author Steven Rogers <soldoutactivist@gmail.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* This is a stub for the Phaser Debug Class.
* It allows you to exclude the default Debug from your build, without making Game crash.
*/
/**
* No-operation for Phaser Debug stub.
*/
var debugNoop = function () {};
Phaser.Utils.Debug = debugNoop;
Phaser.Utils.Debug.prototype = {
isDisabled: true,
boot: debugNoop,
preUpdate: debugNoop,
reset: debugNoop,
start: debugNoop,
stop: debugNoop,
line: debugNoop,
soundInfo: debugNoop,
cameraInfo: debugNoop,
timer: debugNoop,
pointer: debugNoop,
spriteInputInfo: debugNoop,
key: debugNoop,
inputInfo: debugNoop,
spriteBounds: debugNoop,
ropeSegments: debugNoop,
spriteInfo: debugNoop,
spriteCoords: debugNoop,
lineInfo: debugNoop,
pixel: debugNoop,
geom: debugNoop,
rectangle: debugNoop,
text: debugNoop,
quadTree: debugNoop,
body: debugNoop,
bodyInfo: debugNoop,
box2dWorld: debugNoop,
box2dBody: debugNoop
};
Phaser.Utils.Debug.prototype.constructor = Phaser.Utils.Debug;