pgzero icon indicating copy to clipboard operation
pgzero copied to clipboard

Added support for flipping Actor images horizontally and vertically.

Open AnthonyBriggs opened this issue 6 years ago • 0 comments

This is a (hopefully) straightforward change which exposes Pygame's transform.flip in an easy to use way.

  • set Actor.flip to True/False to flip horizontally
  • set Actor.flip to a (horizontal, vertical) tuple to set both axes

This seemed cleaner to use than having separate properties for each axis, eg. actor.flip_horizontal and actor.flip_vertical

AnthonyBriggs avatar Sep 13 '18 04:09 AnthonyBriggs