API Reference › Sprite › Sprite.sheet
method

Sprite.sheet

Sprite.sheet(path, cellw, cellh) -> int

Loads the PNG at path and records that its cells are cellw x cellh px, returning a sheet handle. Address its cells with Sprite.cell / Sprite.cell_span. The whole image is kept (variable size), so cells are not restricted to the 16x16 sprite table.

← All symbols