{"id":14971125,"url":"https://github.com/samme/phaser-plugin-scene-watcher","last_synced_at":"2025-10-26T14:31:09.324Z","repository":{"id":32737625,"uuid":"135633095","full_name":"samme/phaser-plugin-scene-watcher","owner":"samme","description":"Scene monitoring and debugging for Phaser 3","archived":false,"fork":false,"pushed_at":"2024-06-30T23:29:17.000Z","size":956,"stargazers_count":29,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T20:18:13.496Z","etag":null,"topics":["phaser","phaser-plugin","phaser3","phaser3-plugin"],"latest_commit_sha":null,"homepage":"https://codepen.io/samme/pen/VBbJZM","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":"CHANGELOG.md","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":"2018-05-31T20:38:57.000Z","updated_at":"2024-11-05T17:58:17.000Z","dependencies_parsed_at":"2022-07-25T18:22:29.208Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-plugin-scene-watcher","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-scene-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-scene-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-scene-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-scene-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-plugin-scene-watcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347570,"owners_count":19456962,"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"],"created_at":"2024-09-24T13:44:44.984Z","updated_at":"2025-10-26T14:31:03.980Z","avatar_url":"https://github.com/samme.png","language":"JavaScript","readme":"![Screenshot](./preview.png)\n\nPhaser 3 Scene Watcher Plugin\n=============================\n\nFor each scene, it shows (left to right):\n\n1. key\n2. status\n3. display list count\n4. update list count\n5. active (a)\n6. visible (v)\n7. transitioning (t)\n8. [input active](https://newdocs.phaser.io/docs/3.80.0/focus/Phaser.Input.InputPlugin-isActive) (i)\n9. [keyboard input active](https://newdocs.phaser.io/docs/3.80.0/focus/Phaser.Input.Keyboard.KeyboardPlugin-isActive) (k)\n\nSee the [demo](https://codepen.io/samme/pen/VBbJZM) or [Cavern Quest](https://samme.itch.io/cavern-quest).\n\nBrowser / UMD\n-------------\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/phaser-plugin-scene-watcher@7.0.0/dist/phaser-plugin-scene-watcher.umd.js\"\u003e\u003c/script\u003e\n```\n\nUse the global `PhaserSceneWatcherPlugin`.\n\n```javascript\n/* global PhaserSceneWatcherPlugin */\n\nnew Phaser.Game({\n  plugins: {\n    global: [\n      { key: 'SceneWatcher', plugin: PhaserSceneWatcherPlugin, start: true }\n    ]\n  },\n});\n```\n\nModule\n------\n\nInstall `phaser-plugin-scene-watcher` from npm and use the default import:\n\n```javascript\nimport SceneWatcherPlugin from 'phaser-plugin-scene-watcher';\n\nnew Phaser.Game({\n  plugins: {\n    global: [\n      { key: 'SceneWatcher', plugin: SceneWatcherPlugin, start: true }\n    ]\n  },\n});\n```\n\nQuick load\n----------\n\n```javascript\nfunction preload () {\n  this.load.plugin('PhaserSceneWatcherPlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-scene-watcher@7.0.0/dist/phaser-plugin-scene-watcher.umd.js', true);\n}\n```\n\nLog scene events to console\n---------------------------\n\n`watchAll()` starts logging scene events for **all** existing scenes. Call it **once** after all scenes are added.\n\nFrom the game configuration:\n\n```javascript\nnew Phaser.Game({\n  callbacks: {\n    postBoot: function (game) {\n      // Use the `key` you added the plugin with.\n      game.plugins.get('SceneWatcher').watchAll();\n    }\n  }\n});\n```\n\nFrom a scene:\n\n```javascript\nfunction init () {\n  // Use the `key` you added the plugin with.\n  this.plugins.get('SceneWatcher').watchAll();\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-scene-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-plugin-scene-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-scene-watcher/lists"}