{"id":15224724,"url":"https://github.com/samme/phaser-plugin-debug-game-scale","last_synced_at":"2025-04-09T17:53:42.927Z","repository":{"id":57322867,"uuid":"314664684","full_name":"samme/phaser-plugin-debug-game-scale","owner":"samme","description":"Shows Phaser 3 Scale Manager state","archived":false,"fork":false,"pushed_at":"2025-02-17T18:03:19.000Z","size":643,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T02:35:20.710Z","etag":null,"topics":["phaser","phaser-plugin","phaser3","phaser3-plugin","scale-manager"],"latest_commit_sha":null,"homepage":"https://codepen.io/samme/full/mdEZOoP","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-20T20:41:48.000Z","updated_at":"2025-02-17T18:03:22.000Z","dependencies_parsed_at":"2024-11-07T06:19:25.993Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-plugin-debug-game-scale","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-game-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-game-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-game-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-game-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-plugin-debug-game-scale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083534,"owners_count":21045118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["phaser","phaser-plugin","phaser3","phaser3-plugin","scale-manager"],"created_at":"2024-09-28T17:05:20.365Z","updated_at":"2025-04-09T17:53:42.920Z","avatar_url":"https://github.com/samme.png","language":"JavaScript","readme":"![](https://repository-images.githubusercontent.com/314664684/acc710d3-9255-4c73-9a6b-b2cf21483240)\n\nPhaser 3 Debug Game Scale Plugin\n================================\n\nFor 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).\n\nQuick load\n----------\n\nYou must use `type: Phaser.CANVAS` in the game config.\n\n### In `preload()`\n\n```js\nthis.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-debug-game-scale@4.1.0', true)\n```\n\n### In console\n\n```js\ngame.scene.getScenes(true)[0].sys.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-debug-game-scale@4.1.0', true).start()\n```\n\nScript tags / UMD\n-----------------\n\n```html\n\u003c!-- after phaser.js --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/phaser-plugin-debug-game-scale@4.1.0\"\u003e\u003c/script\u003e\n```\n\n```js\n/* global PhaserDebugGameScalePlugin */\n\nnew Phaser.Game({\n    type: Phaser.CANVAS,\n    plugins: {\n        global: [\n            { key: 'DebugGameScalePlugin', plugin: PhaserDebugGameScalePlugin, start: true }\n        ]\n    }\n}\n```\n\nModule\n------\n\n```js\nimport DebugGameScalePlugin from 'phaser-plugin-debug-game-scale'\n\nnew Phaser.Game({\n    type: Phaser.CANVAS,\n    plugins: {\n        global: [\n            { key: 'DebugGameScalePlugin', plugin: DebugGameScalePlugin, start: true }\n        ]\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-game-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-plugin-debug-game-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-game-scale/lists"}