struct TRIAL_ROAD_FOUNTAIN
One of the fountain stage's fountains: the vent its water rises from, and the platform the leader rides on top of it.
Declared in trial_road.c.
Fields
| Name | Description | |
|---|---|---|
Sint16 | id | its vent; 0 for an empty slot |
Sint16 | phase | ticks into its period |
Sint16 | height | how far it has risen, in pixels |
Sint16 | period | ticks in one rise and fall |
Sint16 | riseAt | the phase it starts to rise at |
Sint16 | fallAt | the phase it starts to fall at |
Sint16 | high | the height it rises to, in pixels |
Sint16 | low | the height it falls back to |
Sint16 | unusedAfterLow | set to 1 as the fountain is added; nothing reads it |
Sint16 | speed | pixels a tick, 4 rising and -8 falling |
Sint16 | unusedAfterSpeed | cleared as the fountain is added; nothing reads it |
Sint16 | bob | the top's bob, a sine phase |
ACTOR * | top | an unseen platform on the water the leader rides |
Description
One of the fountain stage's fountains: the vent its water rises from, and the platform the leader rides on top of it.
struct TRIAL_ROAD_FOUNTAIN
Referenced by scTrialRoadAddFountain(), scTrialRoadDrawFountains(), scTrialRoadSetUpFountainStage() and scTrialRoadUpdateFountains().
Definition at line 2078 of file trial_road.c.
Fields in detail
id
Sint16 id
its vent; 0 for an empty slot
phase
Sint16 phase
ticks into its period
height
Sint16 height
how far it has risen, in pixels
period
Sint16 period
ticks in one rise and fall
riseAt
Sint16 riseAt
the phase it starts to rise at
fallAt
Sint16 fallAt
the phase it starts to fall at
high
Sint16 high
the height it rises to, in pixels
low
Sint16 low
the height it falls back to
unusedAfterLow
Sint16 unusedAfterLow
set to 1 as the fountain is added; nothing reads it
speed
Sint16 speed
pixels a tick, 4 rising and -8 falling
unusedAfterSpeed
Sint16 unusedAfterSpeed
cleared as the fountain is added; nothing reads it
bob
Sint16 bob
the top's bob, a sine phase
top
ACTOR *top
an unseen platform on the water the leader rides