Skip to Content
The Alchemy Project

struct SPRING_OBSTACLE

One of the four obstacles moving in the spring during a toss. More…

Declared in tolbi_games.c.

Fields

NameDescription
VECTOR3pos16.16 fixed-point pixels
Sint16heading
Sint16pauseOrPhasea crab's ticks of rest, a turtle's ticks round
Sint16speedModeits ellipse
Sint16reactionTicksticks left raising its claws or hiding in its shell
Sint16hitCooldownTicksticks before it can knock the token again

Description

One of the four obstacles moving in the spring during a toss. Each time the token runs into one it goes a step faster and changes colour, back to its first speed after the third: speedMode is 0 to 2, and it moves speedMode + 1 times as fast as at 0.

struct SPRING_OBSTACLE

Referenced by Obstacles, scTolbiSpringInitTossSimulation() and scTolbiSpringUpdateTossSimulation().

Definition at line 352 of file tolbi_games.c.

Fields in detail

pos

VECTOR3 pos

16.16 fixed-point pixels

heading

Sint16 heading

pauseOrPhase

Sint16 pauseOrPhase

a crab's ticks of rest, a turtle's ticks round

speedMode

Sint16 speedMode

its ellipse

reactionTicks

Sint16 reactionTicks

ticks left raising its claws or hiding in its shell

hitCooldownTicks

Sint16 hitCooldownTicks

ticks before it can knock the token again