Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T18:48:13.000Z (2 months ago)
- Last Synced: 2024-08-30T06:22:44.007Z (about 1 month ago)
- Topics: phaser, phaser-plugin, phaser3, phaser3-plugin, scale-manager
- Language: JavaScript
- Homepage: https://codepen.io/samme/full/mdEZOoP
- Size: 623 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](https://repository-images.githubusercontent.com/314664684/cf308080-d4ba-11eb-8edd-6786eb2fc0d2)
Phaser 3 Debug Game Scale Plugin
================================For your game scaling woes. It shows the [Scale Manager](https://newdocs.phaser.io/docs/3.80.1/Phaser.Scale.ScaleManager) state and logs [events](https://newdocs.phaser.io/docs/3.80.1/Phaser.Scale.Events). See [demos](https://codepen.io/collection/aMWjwK).
Browser / UMD
-------------```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 }
]
}
}
```Quick load
----------You must use the `Phaser.CANVAS` renderer.
```js
// In preload():this.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true)
``````js
// In console:game.scene.getScenes(true)[0].sys.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true).start()
```