Skip to Content
The Alchemy Project

struct SOL_SANCTUM_LIGHT_ENTRY

One floating light: its actor, its drift and its pulsing scale, and where it is while hidden.

Declared in sol_sanctum_elemental_star_lights.c.

Fields

NameDescription
ACTOR *actor
FIXEDxPosition in 16.16 fixed-point pixels.
FIXEDy
FIXEDz
Sint32speedXIts drift on each axis, which grows at random each step; the light swings by the sine of it.
Sint32speedY
Sint32speedZ
FIXEDscale16.16 fixed point, where toFIXED(1) is full size.
FIXEDscaleStep16.16 fixed point.
Uint8timerTicks to its next step.
Uint8holdSteps it has left hidden.

Description

One floating light: its actor, its drift and its pulsing scale, and where it is while hidden.

struct SOL_SANCTUM_LIGHT_ENTRY

Referenced by scSolSanctumStartFloatingLights() and scSolSanctumUpdateFloatingLights().

Definition at line 24 of file sol_sanctum_elemental_star_lights.c.

Fields in detail

actor

ACTOR *actor

x

FIXED x

Position in 16.16 fixed-point pixels.

y

FIXED y

z

FIXED z

speedX

Sint32 speedX

Its drift on each axis, which grows at random each step; the light swings by the sine of it.

speedY

Sint32 speedY

speedZ

Sint32 speedZ

scale

FIXED scale

16.16 fixed point, where toFIXED(1) is full size.

scaleStep

FIXED scaleStep

16.16 fixed point.

timer

Uint8 timer

Ticks to its next step.

hold

Uint8 hold

Steps it has left hidden.