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

Revert the sprites #10

Open
maurogeorge opened this issue Apr 5, 2016 · 0 comments
Open

Revert the sprites #10

maurogeorge opened this issue Apr 5, 2016 · 0 comments

Comments

@maurogeorge
Copy link
Owner

The Player and Mauro sprites are generated as a mirrored image.

The idea here, is to cut the image in the half and do the change of the left and right sprite via JavaScript.

Before this was done using this.player.scale.x = -1. But this approach generates a bug since the sprite is moved outside the box. So when walking from right to left the player sprite be over the pipe and not collide properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant