phaser-plugin-debug-game-scale
v4.1.0
Published
Shows Phaser 3 Scale Manager state
Downloads
15
Maintainers
Readme
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.
// In preload():
this.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true)
// In console:
game.scene.getScenes(true)[0].sys.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true).start()