phaser-debug-layout

1.3.1 • Public • Published

phaser-debug-layout

Debug world layout in Phaser. Works for any view element.

Usage

var debugLayout = require('phaser-debug-layout');
 
var game = new Phaser.Game(800, 600);
// preload some game assets and create game layout/view hierarchy
// in Phaser
debugLayout(game.world);
// logs all elements inside world in a hierarchy
 
var group = game.add.group(undefined, 'groupname');
var sprite = group.create(0, 0, 'spritekey');
debugLayout(group);
// logs all elements inside `group` in a hierarchy

/phaser-debug-layout/

    Package Sidebar

    Install

    npm i phaser-debug-layout

    Weekly Downloads

    3

    Version

    1.3.1

    License

    MIT

    Last publish

    Collaborators

    • byondreal