Macaw OS C reference

Function mapwidth

#include <macaw.h>
int mapwidth(const char *layer);

Tells you how many tiles across a map layer is.

Parameters

layerconst char *
The layer's name, or NULL for the first layer.

Returns int

Its width in tiles, or 0 if there's no such layer.

In Sprites and the map, with spr, sprex, sspr, fget, fset, map, mget, mset, mapheight, maplayers, maplayername.