Skip to content

rawr_light

Boyd Hamilton edited this page Aug 3, 2024 · 1 revision

rawr_light.h

Functions

setlightingenv

void rawr_setlightingenv()

Initiates lightmap.

pointlight

void rawr_pointlight(byte xc, byte yc, byte r, byte b_illum, byte b_coll)

Illuminates area covered by circle defined by xc, yc, and r. The illumination bit is set with b_illum. The light will collide with pixels set to bit b_coll. Uses LoS (line of sight) lighting, where each pixel that falls in the bounds of the circle is checked to determine whether or not it has a straight line of pixels set to bit !b_coll from the point to the point {xc, yc}.

Clone this wiki locally