Map:pixel_size

Returns the size of the map in pixels.

Usage

map:pixel_size()

Returns

Name Type Description
width number Map width in pixels.
height number Map height in pixels.

Examples

local map = crystal.assets.get("assets/maps/forest.lua");
local width, height = map:pixel_size();
print(width, height);

This site uses Just the Docs, a documentation theme for Jekyll.