Skip to Content
The Alchemy Project

src/field/script_commands_tables.c

Tables of the field commands, in the order of The Broken Seal's field_engine_tables.c: the rope's headings, the line scroll's sine, the rain's frames and offsets, the sparkles and the leader's pulse as a Mars Djinni joins.

Variables

NameDescription
const Uint16RopeKeyHeadings [16]The heading the +Control Pad points, by its right, left, up and down bits (DPAD_INDEX), where fdLeaderStepOffRope and fdLeaderStepOffTightrope step; DPAD_ANGLE_NONE for none or opposed keys.
const Sint16LineScrollWaveSine [256]A sine wave of 256 steps and amplitude 4096 that the line scrolls ride (script_commands_line_scroll.c), as The Broken Seal's.
const Sint16WeatherRainSplashFrames [80]The Broken Seal's raindrop (fdGroundParticlesUpdate), {dx, dy, tile, shape, size} by the ticks it has left: a 32 by 16 streak falling from up to the right onto its spot, then its splash's four 16 by 16 pictures. dx and dy are screen pixels from the spot, tile counts from its first tile.
const Sint16WeatherRainStreakOffsets [22]{x, y} screen offsets in pixels of a falling rain streak by the ticks it has left (fdWeatherUpdateRain); The Broken Seal has no such table.
const SPARKLE_PICTUREFieldEffectSparklePictures [32]{dy, tile} of a sparkle (script_commands_motes.c): dy in screen pixels from its spot, a row every two ticks.
const Uint32FieldEffectPulseScales [2]The two scales fdEffectPulseActorScale switches between every 4 ticks, full size and 0.97 of it: the leader pulsing as a Mars Djinni joins.

Description

Tables of the field commands, in the order of The Broken Seal's field_engine_tables.c: the rope's headings, the line scroll's sine, the rain's frames and offsets, the sparkles and the leader's pulse as a Mars Djinni joins.

Variables in detail

RopeKeyHeadings

const Uint16 RopeKeyHeadings[16]

The heading the +Control Pad points, by its right, left, up and down bits (DPAD_INDEX), where fdLeaderStepOffRope and fdLeaderStepOffTightrope step; DPAD_ANGLE_NONE for none or opposed keys. The same table as InputDpadAngles.

Referenced by fdLeaderStepOffRope() and fdLeaderStepOffTightrope().

Definition at line 17 of file script_commands_tables.c.

LineScrollWaveSine

const Sint16 LineScrollWaveSine[256]

A sine wave of 256 steps and amplitude 4096 that the line scrolls ride (script_commands_line_scroll.c), as The Broken Seal's.

Definition at line 26 of file script_commands_tables.c.

WeatherRainSplashFrames

const Sint16 WeatherRainSplashFrames[80]

The Broken Seal's raindrop (fdGroundParticlesUpdate), {dx, dy, tile, shape, size} by the ticks it has left: a 32 by 16 streak falling from up to the right onto its spot, then its splash's four 16 by 16 pictures. dx and dy are screen pixels from the spot, tile counts from its first tile.

Referenced by fdGroundParticlesUpdate().

Definition at line 64 of file script_commands_tables.c.

WeatherRainStreakOffsets

const Sint16 WeatherRainStreakOffsets[22]

{x, y} screen offsets in pixels of a falling rain streak by the ticks it has left (fdWeatherUpdateRain); The Broken Seal has no such table.

Referenced by fdWeatherUpdateRain().

Definition at line 85 of file script_commands_tables.c.

FieldEffectSparklePictures

const SPARKLE_PICTURE FieldEffectSparklePictures[32]

{dy, tile} of a sparkle (script_commands_motes.c): dy in screen pixels from its spot, a row every two ticks.

Referenced by fdEffectUpdateSparkles().

Definition at line 101 of file script_commands_tables.c.

FieldEffectPulseScales

const Uint32 FieldEffectPulseScales[2]

The two scales fdEffectPulseActorScale switches between every 4 ticks, full size and 0.97 of it: the leader pulsing as a Mars Djinni joins. The Broken Seal's table, its third word gone.

Referenced by fdEffectPulseActorScale().

Definition at line 138 of file script_commands_tables.c.