Map:pixel_width
Returns the width of the map in pixels.
Usage
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);