Map:pixel_width

Returns the width of the map in pixels.

Usage

map:pixel_width()

Returns

Name Type Description
width number Map width in pixels.

Examples

local map = crystal.assets.get("assets/maps/forest.lua");
local area = map:pixel_width() * map:pixel_height();
print(area);

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