File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77/**
88* A collection of methods for displaying debug information about game objects.
9+ *
10+ * If your game is running in Canvas mode, then you should invoke all of the Debug methods from
11+ * your games `render` function. This is because they are drawn directly onto the game canvas
12+ * itself, so if you call any debug methods outside of `render` they are likely to be overwritten
13+ * by the game itself.
14+ *
915* If your game is running in WebGL then Debug will create a Sprite that is placed at the top of the Stage display list and bind a canvas texture
1016* to it, which must be uploaded every frame. Be advised: this is very expensive, especially in browsers like Firefox. So please only enable Debug
1117* in WebGL mode if you really need it (or your desktop can cope with it well) and disable it for production!
12- * If your game is using a Canvas renderer then the debug information is literally drawn on the top of the active game canvas and no Sprite is used.
1318*
1419* @class Phaser.Utils.Debug
1520* @constructor
You can’t perform that action at this time.
0 commit comments