Macaw OS C reference

Function fget

#include <macaw.h>
int fget(int n);

Reads a sprite's flags, from gfx.flags. Flags mean whatever you decide, such as flag 0 for a solid tile.

Parameters

nint
The sprite's number, from 0 to 255.

Returns int

All 8 flags as one number, from 0 to 255: flag f is set if (fget(n) >> f) & 1 is 1.

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