photonstorm/phaser — pull request #988 by jackrugile (2014-07-10 06:16:34+00:00)
Title: Added options to disable horizontal and vertical world wrapping individually

I recently found myself having to rewrite the wrapping checks manually to handle this situation. This is a backwards compatible change. Just a convenience, it can be nice to separate how the sprite wraps.

Feel free to edit the implementation. I considered new helper methods such as `world.wrapX()` and `world.wrapY()`, but thought it would add too much code.