phaser-plugin-debug-game-scale

3.3.0 • Public • Published

Phaser 3 Debug Game Scale Plugin

For your game scaling woes. It shows the Scale Manager state and logs events. See demos.

Browser / UMD

/* global PhaserDebugGameScalePlugin */
new Phaser.Game({
    type: Phaser.CANVAS,
    plugins: {
        global: [
            { key: 'DebugGameScalePlugin', plugin: PhaserDebugGameScalePlugin, start: true }
        ]
    }
}

Module

import DebugGameScalePlugin from 'phaser-plugin-debug-game-scale'

new Phaser.Game({
    type: Phaser.CANVAS,
    plugins: {
        global: [
            { key: 'DebugGameScalePlugin', plugin: DebugGameScalePlugin, start: true }
        ]
    }
}

Quick load

You must use the Phaser.CANVAS renderer.

// preload()
this.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-debug-game-scale@3.3.0', true)
// Console
game.scene.getScenes(true)[0].sys.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-debug-game-scale@3.3.0', true).start()

Package Sidebar

Install

npm i phaser-plugin-debug-game-scale

Weekly Downloads

4

Version

3.3.0

License

ISC

Unpacked Size

16.6 kB

Total Files

4

Last publish

Collaborators

  • samme