Guide 1 Docs 2 Reference 3

Function of Game

game.texture

Returns a new texture of width by height pixels, see-through until drawn on, for a pack's block or item. A texture to draw on (512 at most a side), or a PNG file in the pack (4096 at most a side).

game.texture((width: number, height: number) -> Texture) →  & ((file: string) -> Texture)

Parameters

(widthnumber, height: number) -> Texturerequired

Returns

& ((file: string) -> Texture)

Used in