Macaw OS C reference

Function mapheight

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

Tells you how many tiles down a map layer is.

Parameters

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

Returns int

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

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