CometZ  0.2
 All Classes Namespaces Functions
Public Member Functions | Public Attributes
spriteTools.SpriteSheet Class Reference

List of all members.

Public Member Functions

def __init__
def getImagePixel
def getImageGrid

Public Attributes

 imageSheet

Detailed Description

    Class to get sprites from a sprite sheet

Member Function Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions