Skip to content

Instantly share code, notes, and snippets.

@labuzm
Created January 3, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save labuzm/6ee08adfa64e6dc6e4e0 to your computer and use it in GitHub Desktop.
Save labuzm/6ee08adfa64e6dc6e4e0 to your computer and use it in GitHub Desktop.
flipping tileset
def image_loader(source, colorkey, **kwargs):
tileset = kwargs['tileset']
#...
def extract_image(rect, flags):
x, y, w, h = rect
y = tileset.height - y - h
# ...
return extract_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment