{"id":21649499,"url":"https://github.com/samme/phaser-plugin-debug-body-colors","last_synced_at":"2025-07-04T07:32:09.635Z","repository":{"id":52096576,"uuid":"137782192","full_name":"samme/phaser-plugin-debug-body-colors","owner":"samme","description":"Colors Arcade Physics bodies by collision state","archived":false,"fork":false,"pushed_at":"2025-01-22T07:47:05.000Z","size":293,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T18:45:51.601Z","etag":null,"topics":["phaser","phaser-plugin","physics"],"latest_commit_sha":null,"homepage":"https://codepen.io/collection/yyBZBZ?grid_type=grid","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,"zenodo":null}},"created_at":"2018-06-18T17:07:33.000Z","updated_at":"2025-01-22T07:47:02.000Z","dependencies_parsed_at":"2025-04-12T13:46:29.698Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-plugin-debug-body-colors","commit_stats":{"total_commits":48,"total_committers":2,"mean_commits":24.0,"dds":"0.16666666666666663","last_synced_commit":"944ea7340d7b643f36404d29db52448287e4f715"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/samme/phaser-plugin-debug-body-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-body-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-body-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-body-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-body-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-plugin-debug-body-colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-body-colors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263071563,"owners_count":23409256,"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","physics"],"created_at":"2024-11-25T07:31:28.749Z","updated_at":"2025-07-04T07:32:09.615Z","avatar_url":"https://github.com/samme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://samme.github.io/phaser-plugin-debug-body-colors/preview.png)\n\nColors Arcade Physics bodies by collision state.\n\n| State                                            | Color  |\n|--------------------------------------------------|--------|\n| [disabled][0]                                    | gray   |\n| [blocked][1], not disabled                       | red    |\n| [touching][2], not disabled or blocked           | yellow |\n| [embedded][3], not disabled, blocked or touching | aqua   |\n| not disabled, blocked, touching, or embedded     | violet |\n\n- [Examples](https://codepen.io/collection/yyBZBZ?grid_type=grid)\n\nUMD\n---\n\n```html\n\u003c!-- after phaser.js --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/phaser-plugin-debug-body-colors@4.0.0\"\u003e\u003c/script\u003e\n```\n\n```javascript\n/* global Phaser, PhaserDebugBodyColorsPlugin */\n\nnew Phaser.Game({\n  plugins: {\n    scene: [\n      { key: 'DebugBodyColorsPlugin', plugin: PhaserDebugBodyColorsPlugin, mapping: 'debugBodyColors' }\n    ]\n  },\n  physics: {\n    arcade: { debug: true }\n  }\n});\n```\n\nQuick load\n----------\n\n```js\nfunction preload () {\n  this.load.scenePlugin('PhaserDebugBodyColorsPlugin', 'https://cdn.jsdelivr.net/npm/phaser-plugin-debug-body-colors@4.0.0');\n}\n```\n\nModule\n------\n\n```javascript\nimport DebugBodyColorsPlugin from 'phaser-plugin-debug-body-colors';\n\nnew Phaser.Game({\n  plugins: {\n    scene: [\n      { key: 'DebugBodyColorsPlugin', plugin: DebugBodyColorsPlugin, mapping: 'debugBodyColors' }\n    ]\n  },\n  physics: {\n    arcade: { debug: true }\n  }\n});\n```\n\n[0]: https://docs.phaser.io/api-documentation/class/physics-arcade-body#enable\n[1]: https://docs.phaser.io/api-documentation/class/physics-arcade-body#blocked\n[2]: https://docs.phaser.io/api-documentation/class/physics-arcade-body#touching\n[3]: https://docs.phaser.io/api-documentation/class/physics-arcade-body#embedded\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-body-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-plugin-debug-body-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-body-colors/lists"}