SpriteGrid
Struct
Description
Defines a sprite grid within a sprite sheet. You can define as many sprite grids as needed to use with your sprite sheets. The sprite grid is not tied to any particular sprite sheet, and can be reused with multiple sprite sheets.
If region is not specified then the grid covers the entire size of the sprite sheet, and each sprite is of cellSize dimensions.
If region is specified then only that area of the sprite sheet is used by the grid, and each sprite in this area is of cellSize dimensions. This allows for defining of multiple grids of varying sprite sizes in the same sprite sheet.
Variables
cellSize
|
Size of a single cell in the sprite grid
|
fullSheet
|
Special sprite grid that covers the entire sprite sheet in a single grid cell, regardless of how large the sprite sheet is.
|
region
|
Sprite sheet region covered by the sprite grid
|
Methods
|