pakamijo / EasySprite

0 stars 0 forks source link

No support for vertical flipping #1

Open pakamijo opened 4 months ago

pakamijo commented 4 months ago

The module currently supports flipping left / right, and should extend its support to up / down flipping aswell (cause what if you want to make sprites for topdown games?)

pakamijo commented 3 months ago

in case implementation is backwards incompatible, it would require a 2.0.X version release

problem being .flip() and .isFlipped() referring only to a mirror on the X axis, problem inherited from forking off of SimpleSprite.

would a Y mirror be .flipY() and .isFlippedY()?

it would bring ambiguity to the meaning of .flip(), unless changed to .flipX(), which would be backwards incompatible. possibly deprecate .flip() to maintain compatibility and just set flip = flipX