Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot control color/fill of sprite body's debug shape #970

Closed
psalaets opened this issue Jul 5, 2014 · 1 comment
Closed

Cannot control color/fill of sprite body's debug shape #970

psalaets opened this issue Jul 5, 2014 · 1 comment

Comments

@psalaets
Copy link
Contributor

psalaets commented Jul 5, 2014

The color string and filled flag passed to Phaser.Utils.Debug#body seem to be ignored in 2.0.5 and dev branch.

Example: http://jsfiddle.net/psalaets/u4jUL/1/

Problem is due to param order mismatch in Phaser.Utils.Debug#body. It calls

Phaser.Physics.Arcade.Body.render(context, body, color, filled);

but expected params are

function (context, body, filled, color)

Any valid color string is truthy so it always renders a filled rect. Analogous thing happens to the last param.

@psalaets
Copy link
Contributor Author

psalaets commented Jul 7, 2014

Fixed by PR #971

@psalaets psalaets closed this as completed Jul 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant