Macaw OS C reference

Function mset

#include <macaw.h>
void mset(int x, int y, int n, const char *layer);

Changes one tile of the map while your program runs. A tile off the map is left alone.

Parameters

xint
The tile's column, counting from 0.
yint
The tile's row, counting from 0.
nint
The sprite number to put there, from 0 to 255. 0 makes it empty.
layerconst char *
The layer's name, or NULL for the first layer.

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