https://github.com/samme/phaser-plugin-debug-game-scale
Shows Phaser 3 Scale Manager state
https://github.com/samme/phaser-plugin-debug-game-scale
phaser phaser-plugin phaser3 phaser3-plugin scale-manager
Last synced: about 1 month ago
JSON representation
Shows Phaser 3 Scale Manager state
- Host: GitHub
- URL: https://github.com/samme/phaser-plugin-debug-game-scale
- Owner: samme
- Created: 2020-11-20T20:41:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T18:03:19.000Z (3 months ago)
- Last Synced: 2025-03-23T02:35:20.710Z (2 months ago)
- Topics: phaser, phaser-plugin, phaser3, phaser3-plugin, scale-manager
- Language: JavaScript
- Homepage: https://codepen.io/samme/full/mdEZOoP
- Size: 628 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Phaser 3 Debug Game Scale Plugin
================================For your game scaling woes. It shows the [Scale Manager](https://docs.phaser.io/api-documentation/class/scale-scalemanager) state and logs [events](https://docs.phaser.io/api-documentation/event/scale-events). See [demos](https://codepen.io/collection/aMWjwK).
Quick load
----------You must use `type: Phaser.CANVAS` in the game config.
### In `preload()`
```js
this.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true)
```### In console
```js
game.scene.getScenes(true)[0].sys.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true).start()
```Script tags / UMD
-----------------```html
```
```js
/* global PhaserDebugGameScalePlugin */new Phaser.Game({
type: Phaser.CANVAS,
plugins: {
global: [
{ key: 'DebugGameScalePlugin', plugin: PhaserDebugGameScalePlugin, start: true }
]
}
}
```Module
------```js
import DebugGameScalePlugin from 'phaser-plugin-debug-game-scale'new Phaser.Game({
type: Phaser.CANVAS,
plugins: {
global: [
{ key: 'DebugGameScalePlugin', plugin: DebugGameScalePlugin, start: true }
]
}
}
```