1.2.1 • Published 5 months ago

phaser-plugin-display-list-watcher v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Preview

Phaser Display List Watcher Plugin

Shows the scene display lists.

Display

± type name (x, y) depth (count) 

+ is visible; - is invisible.

x, y, and depth are rounded to the nearest 0.1.

count is the number of children (Blitter, Container, Layer) or tiles (TilemapLayer).

Keyboard Controls

Key CombinationAction
shift + left, right, up, downScroll the display
shift + pageupScroll page up
shift + pagedownScroll page down
shift + homeScroll to start
shift + endScroll to end
shift + ZToggle display on/off
shift + XShow display
shift + CHide display
shift + VReset scroll

Multiple Scenes

Scene displays are stacked left to right. Use the keyboard controls to scroll.

If you have stopped scenes that you never need to use again, you could remove them to make space.

Install

Quick Load

// In preload():
this.load.scenePlugin('DisplayListWatcher', 'https://cdn.jsdelivr.net/npm/phaser-plugin-display-list-watcher@1.2.1')

Module

import DisplayListWatcher from 'phaser-plugin-display-list-watcher'

new Phaser.Game({
  plugins: {
    scene: [
      {
        key: 'DisplayListWatcher',
        plugin: DisplayListWatcher
      }
    ]
  }
})

Script tags / UMD

<!-- after phaser.js -->
<script src="https://cdn.jsdelivr.net/npm/phaser-plugin-display-list-watcher@1.2.1"></script>
/* global DisplayListWatcher */

new Phaser.Game({
  plugins: {
    scene: [
      {
        key: 'DisplayListWatcher',
        plugin: DisplayListWatcher
      }
    ]
  }
})
1.2.1

5 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago