# phaser-plugin-debug-game-scale

> Shows Phaser 3 Scale Manager state

Latest version **4.1.0** (published 2024-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install phaser-plugin-debug-game-scale
pnpm add phaser-plugin-debug-game-scale
yarn add phaser-plugin-debug-game-scale
bun add phaser-plugin-debug-game-scale
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2024-07-29 |
| First published | 2020-11-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | samme |
| Maintainers | samme |
| Keywords | phaser, phaser-plugin, phaser3, phaser3-plugin, scalemanager |

## Links

- npm: https://www.npmjs.com/package/phaser-plugin-debug-game-scale
- Repository: https://github.com/samme/phaser-plugin-debug-game-scale
- Homepage: https://github.com/samme/phaser-plugin-debug-game-scale#readme
- Issues: https://github.com/samme/phaser-plugin-debug-game-scale/issues
- npm.io page: https://npm.io/package/phaser-plugin-debug-game-scale

## Recent versions

- 4.1.0 (latest) — 2024-07-29
- 4.0.0 — 2024-07-09
- 3.4.0 — 2024-07-09
- 3.3.0 — 2022-06-16
- 3.2.0 — 2022-05-10
- 3.1.0 — 2021-06-23
- 3.0.0 — 2021-06-22
- 2.0.0 — 2021-05-25
- 1.0.2 — 2020-11-20
- 1.0.1 — 2020-11-20
- 1.0.0 — 2020-11-20

## 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/phaser-plugin-debug-game-scale@4.1.0', true)
```

```js
// In console:

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

---
_Source: https://npm.io/package/phaser-plugin-debug-game-scale · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
