{"id":14964019,"url":"https://github.com/samme/phaser-sprite-gui","last_synced_at":"2025-10-25T03:31:15.657Z","repository":{"id":57322888,"uuid":"66994987","full_name":"samme/phaser-sprite-gui","owner":"samme","description":"Inspect and manipulate sprites with dat.gui. Phaser 2/CE","archived":false,"fork":false,"pushed_at":"2017-09-16T16:34:31.000Z","size":717,"stargazers_count":52,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T05:33:25.363Z","etag":null,"topics":["dat-gui","phaser","phaser2"],"latest_commit_sha":null,"homepage":"https://samme.github.io/phaser-sprite-gui/","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}},"created_at":"2016-08-31T02:23:06.000Z","updated_at":"2024-05-29T10:56:27.000Z","dependencies_parsed_at":"2022-09-11T16:33:10.281Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-sprite-gui","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-sprite-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-sprite-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-sprite-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-sprite-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-sprite-gui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238075256,"owners_count":19412302,"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":["dat-gui","phaser","phaser2"],"created_at":"2024-09-24T13:32:28.825Z","updated_at":"2025-10-25T03:31:10.277Z","avatar_url":"https://github.com/samme.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"![Screenshot](https://samme.github.io/phaser-sprite-gui/screenshot.png)\n\nInspect and manipulate Phaser Sprites (via dat.gui). [Demo](https://samme.github.io/phaser-sprite-gui/)\n\nInstall\n-------\n\n### Bower\n\n```sh\nbower install -S samme/phaser-sprite-gui\n```\n\n### NPM\n\n```sh\nnpm install -S phaser-sprite-gui\n```\n\nIf [dat.gui/index.js](https://github.com/dataarts/dat.gui/blob/master/index.js) doesn't compile, use [dat.gui/build/dat.gui.js](https://github.com/dataarts/dat.gui/blob/master/build/dat.gui.js) instead.\n\n### CommonJS / Webpack\n\nIt should work. The exported constructor is identical to `Phaser.SpriteGUI`.\n\n### Drop-in install\n\nAdd [dat.gui.js](https://github.com/dataarts/dat.gui/tree/master/build/dat.gui.js) and [index.js](index.js) before your game scripts.\n\nUse\n---\n\n```javascript\n// In create():\nvar sprite = game.add.sprite();\n// …\nvar gui = new Phaser.SpriteGUI(sprite);\n\n// In shutdown():\ngui.destroy();\n```\n\n### Options\n\n#### Pass GUI params\n\n```javascript\n// Example: 320px wide panel\nvar gui = new SpriteGUI(sprite, {width: 320});\n```\n\n#### Filter sprite properties\n\n```javascript\n// Example: Show all properties *except* `body`\nvar gui = new SpriteGUI(sprite, null, {exclude: ['body']});\n\n// Example: Show *only* `body.velocity.x`, `body.velocity.y`\nvar gui = new SpriteGUI(sprite, null, {include: ['body', 'velocity', 'x', 'y']});\n```\n\nFor nested properties, `include` must contain **every** name in the property chain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-sprite-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-sprite-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-sprite-gui/lists"}