Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Phaser Debug

Simple debug module for the Phaser game framework.

Screenshot

Usage

Simply download the phaser-debug.js script from the latest release and include it on your page after including Phaser:

<script src="phaser.js"></script>
<script src="phaser-debug.js"></script>

After adding the script to the page you can activate it by enabling the plugin:

game.add.plugin(Phaser.Plugin.Debug);

TypeScript Usage

Add the phaser-debug.js script to the page (see the first part of the usage section above).

In your phaser.d.ts file, inside module Plugin add:

class Debug extends Phaser.Plugin {

   constructor(game: Phaser.Game, parent: Phaser.PluginManager);
}

Activate the plugin:

this.game.add.plugin(new Phaser.Plugin.Debug(this.game, this.game.plugins));

Browser Support

Currently this module supports the following browsers:

  • Desktop
  • Firefox 30+
  • Chrome 27+
  • Safari 5.1+
  • Opera 23+
You can’t perform that action at this time.