Macaw OS C reference

Function loadlevel

#include <macawlevel.h>
int loadlevel(const char *path);

Reads a .lvl file into a level table without building it. Use it when you want to look at or change a level before building it, or don't need to draw it at all.

Parameters

pathconst char *
The level's file name.

Returns int

The level's number, or 0 if it couldn't be read (levelerror says why).

In Opening, saving and building, with openlevel, newlevel, savelevel, buildlevel, freelevel, levelerror, levelbuilt, levellit, levelpath, levellitpath, levelprobepath.