Map:pixel_height

Returns the height of the map in pixels.

Usage

map:pixel_height()

Returns

Name Type Description
height number Map height 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.