Public Member Functions | |
| def | __init__ |
| def | getImagePixel |
| def | getImageGrid |
Public Attributes | |
| imageSheet | |
Class to get sprites from a sprite sheet
| def spriteTools.SpriteSheet.getImageGrid | ( | self, | |
| row, | |||
| column, | |||
| width, | |||
| height | |||
| ) |
Grab a sprite from a sprite sheet assuming it is based on a grid. One needs the width and height of each sprite, and the row and column of the sprite one wants to extract. The top left one is row=0, column=0.
| def spriteTools.SpriteSheet.getImagePixel | ( | self, | |
| x, | |||
| y, | |||
| width, | |||
| height | |||
| ) |
Grab a sprite from a sprite sheet based on the top left x,y position of the sprite, its width and its height
1.7.6.1