Created
January 3, 2016 17:16
-
-
Save labuzm/6ee08adfa64e6dc6e4e0 to your computer and use it in GitHub Desktop.
flipping tileset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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