Module Building from code: brushes
#include <macawlevel.h>These change a level's table. Call buildlevel afterwards to see the changes. A box's six faces, in order, are -x, +x, -y, +y, -z and +z (west, east, bottom, top, south, north), and a texture is a built-in name like "brick" or a .pxl picture's path.
Functions
- levelbrushcount
- Tells you how many brushes a level has.
- leveladdbox
- Adds a box-shaped brush, from one corner to the opposite one.
- leveladdshape
- Adds a convex brush of any shape, such as a wedge or a ramp, made of flat sides (planes).
- levelremovebrush
- Takes a brush out of the level.
- levelbrushbox
- Gives a brush's corners: a box's own, or the box round a shaped brush.
- levelbrushtexture
- Changes the texture on one face of a brush.
- levelbrushwater
- Makes a brush water or solid again.
- levelbrushglow
- Makes a face of a brush glow.
- levelbrushshine
- Makes a brush, or one face of it, shiny, so it reflects the nearest probe.