Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_neptune.c

The Neptune summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineNEPTUNE_LEAP_TICKS 244Ticks of the first stage, Neptune's leap, which A or B cuts short after its first 16, and of the second, the columns of water.
#defineNEPTUNE_COLUMN_TICKS 144
#defineNEPTUNE_FLARES_TICK 152The first stage's sounds: flares converge on Neptune's head from NEPTUNE_FLARES_TICK, looked at for NEPTUNE_FLARES_WINDOW ticks, while the flare on the head grows and from NEPTUNE_BEAM_TICK the beam joins it to the sky; the flare swells from NEPTUNE_SWELL_TICK, and again from NEPTUNE_SECOND_SWELL_TICK with a second flare beside it, until the splash curls up from NEPTUNE_SPLASH_TICK and it bursts at NEPTUNE_BURST_TICK.
#defineNEPTUNE_FLARES_WINDOW 88
#defineNEPTUNE_BEAM_TICK 176
#defineNEPTUNE_SWELL_TICK 192
#defineNEPTUNE_SECOND_SWELL_TICK 200
#defineNEPTUNE_SPLASH_TICK 214
#defineNEPTUNE_BURST_TICK 222
#defineNEPTUNE_FLARE_SHEET 20000the flare pictures, after the spray
#defineNEPTUNE_SPLASH PICTURE_BYTES(WATER_WAVE)The splash where the beam meets the head, growing and curling.
#defineNEPTUNE_COLUMN_HEAD PICTURE_BYTES(BLUE_FLAME_COLUMN)A water column's head, after its shaft: BlueFlameSheet's pictures.
#defineNEPTUNE_SPRITES 8Neptune is drawn by eight 32x32 sprites, at NeptuneObjectX and NeptuneObjectY.
#defineNEPTUNE_FIRST_SPRAY_DROPS 712The drops of the first spray, as Neptune leaps out of the sea.
#defineNEPTUNE_SEA_Y 88The sea's waves along the canvas, from this row down; the spray is gone once it falls halfway into them.
#defineNEPTUNE_NARROW_LINES 96From NEPTUNE_FLARES_TICK the canvas is drawn at its own width above this screen line and twice as wide below it, rather than all twice as wide.
#defineNEPTUNE_FLARE_COUNT 32The flares that gather on Neptune's head, each closing in for NEPTUNE_FLARE_TICKS ticks on the canvas point NEPTUNE_FLARES_X, NEPTUNE_FLARES_Y.
#defineNEPTUNE_FLARE_TICKS 32
#defineNEPTUNE_FLARES_X 112
#defineNEPTUNE_FLARES_Y 62
#defineNEPTUNE_BURST_SPARKS 64The sparks of the burst, falling from it.
#defineNEPTUNE_BEAM_THIN 5The beam's width in lines: thin as the flares gather, wide from the burst, and wider still on the burst's second and third ticks.
#defineNEPTUNE_BEAM_WIDE 40
#defineNEPTUNE_BEAM_FLASH 60
#defineNEPTUNE_BEAM_LEVEL_MIN 12
#defineNEPTUNE_COLUMN_SLOTS 16The columns of water: NEPTUNE_COLUMN_SLOTS set out, the first NEPTUNE_COLUMNS falling NEPTUNE_COLUMN_INTERVAL ticks apart at NEPTUNE_COLUMN_SPEED pixels a tick until they reach the canvas row NEPTUNE_COLUMN_GROUND, where each stands NEPTUNE_COLUMN_LANDED_TICKS ticks, shaking the battle for the first NEPTUNE_COLUMN_SHAKE_TICKS.
#defineNEPTUNE_COLUMNS 5
#defineNEPTUNE_COLUMN_INTERVAL 16
#defineNEPTUNE_COLUMN_SPEED 16
#defineNEPTUNE_COLUMN_GROUND 112
#defineNEPTUNE_COLUMN_LANDED_TICKS 32
#defineNEPTUNE_COLUMN_SHAKE_TICKS 8

Functions

NameDescription
voidbtEffectResetBg2Pa (void)Sets BG2's horizontal scale back to one texel a pixel above the stretched lines.
voidbtEffectSetBg2AffineScaleHalf (void)Stretches BG2 to twice its width from the current line down.
voidbtEffectRunNeptune (BATTLE_EFFECT_PARM *args)Under storm clouds Neptune leaps out of the sea in a burst of spray, light gathers at its head and a beam of light joins its head to the sky, with a splash there; then five columns of water crash down on the targets, throwing up drops.

Description

The Neptune summon. Part of battle_effect.c.

Macros in detail

NEPTUNE_LEAP_TICKS

#define NEPTUNE_LEAP_TICKS 244

Ticks of the first stage, Neptune's leap, which A or B cuts short after its first 16, and of the second, the columns of water.

Referenced by btEffectRunNeptune().

Definition at line 5 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_TICKS

#define NEPTUNE_COLUMN_TICKS 144

Referenced by btEffectRunNeptune().

Definition at line 6 of file battle_effect_neptune.c.

NEPTUNE_FLARES_TICK

#define NEPTUNE_FLARES_TICK 152

The first stage's sounds: flares converge on Neptune's head from NEPTUNE_FLARES_TICK, looked at for NEPTUNE_FLARES_WINDOW ticks, while the flare on the head grows and from NEPTUNE_BEAM_TICK the beam joins it to the sky; the flare swells from NEPTUNE_SWELL_TICK, and again from NEPTUNE_SECOND_SWELL_TICK with a second flare beside it, until the splash curls up from NEPTUNE_SPLASH_TICK and it bursts at NEPTUNE_BURST_TICK.

Referenced by btEffectRunNeptune().

Definition at line 13 of file battle_effect_neptune.c.

NEPTUNE_FLARES_WINDOW

#define NEPTUNE_FLARES_WINDOW 88

Referenced by btEffectRunNeptune().

Definition at line 14 of file battle_effect_neptune.c.

NEPTUNE_BEAM_TICK

#define NEPTUNE_BEAM_TICK 176

Referenced by btEffectRunNeptune().

Definition at line 15 of file battle_effect_neptune.c.

NEPTUNE_SWELL_TICK

#define NEPTUNE_SWELL_TICK 192

Referenced by btEffectRunNeptune().

Definition at line 16 of file battle_effect_neptune.c.

NEPTUNE_SECOND_SWELL_TICK

#define NEPTUNE_SECOND_SWELL_TICK 200

Referenced by btEffectRunNeptune().

Definition at line 17 of file battle_effect_neptune.c.

NEPTUNE_SPLASH_TICK

#define NEPTUNE_SPLASH_TICK 214

Referenced by btEffectRunNeptune().

Definition at line 18 of file battle_effect_neptune.c.

NEPTUNE_BURST_TICK

#define NEPTUNE_BURST_TICK 222

Referenced by btEffectRunNeptune().

Definition at line 19 of file battle_effect_neptune.c.

NEPTUNE_FLARE_SHEET

#define NEPTUNE_FLARE_SHEET 20000

the flare pictures, after the spray

Referenced by btEffectRunNeptune().

Definition at line 34 of file battle_effect_neptune.c.

NEPTUNE_SPLASH

#define NEPTUNE_SPLASH PICTURE_BYTES(WATER_WAVE)

The splash where the beam meets the head, growing and curling.

Referenced by btEffectRunNeptune().

Definition at line 36 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_HEAD

#define NEPTUNE_COLUMN_HEAD PICTURE_BYTES(BLUE_FLAME_COLUMN)

A water column's head, after its shaft: BlueFlameSheet's pictures.

Referenced by btEffectRunNeptune().

Definition at line 38 of file battle_effect_neptune.c.

NEPTUNE_SPRITES

#define NEPTUNE_SPRITES 8

Neptune is drawn by eight 32x32 sprites, at NeptuneObjectX and NeptuneObjectY.

Referenced by btEffectRunNeptune().

Definition at line 42 of file battle_effect_neptune.c.

NEPTUNE_FIRST_SPRAY_DROPS

#define NEPTUNE_FIRST_SPRAY_DROPS 712

The drops of the first spray, as Neptune leaps out of the sea.

Referenced by btEffectRunNeptune().

Definition at line 44 of file battle_effect_neptune.c.

NEPTUNE_SEA_Y

#define NEPTUNE_SEA_Y 88

The sea's waves along the canvas, from this row down; the spray is gone once it falls halfway into them.

Referenced by btEffectRunNeptune().

Definition at line 47 of file battle_effect_neptune.c.

NEPTUNE_NARROW_LINES

#define NEPTUNE_NARROW_LINES 96

From NEPTUNE_FLARES_TICK the canvas is drawn at its own width above this screen line and twice as wide below it, rather than all twice as wide.

Referenced by btEffectRunNeptune().

Definition at line 50 of file battle_effect_neptune.c.

NEPTUNE_FLARE_COUNT

#define NEPTUNE_FLARE_COUNT 32

The flares that gather on Neptune's head, each closing in for NEPTUNE_FLARE_TICKS ticks on the canvas point NEPTUNE_FLARES_X, NEPTUNE_FLARES_Y.

Referenced by btEffectRunNeptune().

Definition at line 54 of file battle_effect_neptune.c.

NEPTUNE_FLARE_TICKS

#define NEPTUNE_FLARE_TICKS 32

Referenced by btEffectRunNeptune().

Definition at line 55 of file battle_effect_neptune.c.

NEPTUNE_FLARES_X

#define NEPTUNE_FLARES_X 112

Referenced by btEffectRunNeptune().

Definition at line 56 of file battle_effect_neptune.c.

NEPTUNE_FLARES_Y

#define NEPTUNE_FLARES_Y 62

Referenced by btEffectRunNeptune().

Definition at line 57 of file battle_effect_neptune.c.

NEPTUNE_BURST_SPARKS

#define NEPTUNE_BURST_SPARKS 64

The sparks of the burst, falling from it.

Referenced by btEffectRunNeptune().

Definition at line 59 of file battle_effect_neptune.c.

NEPTUNE_BEAM_THIN

#define NEPTUNE_BEAM_THIN 5

The beam's width in lines: thin as the flares gather, wide from the burst, and wider still on the burst's second and third ticks. Its middle line is the brightest, each line out four levels dimmer, none below NEPTUNE_BEAM_LEVEL_MIN.

Referenced by btEffectRunNeptune().

Definition at line 64 of file battle_effect_neptune.c.

NEPTUNE_BEAM_WIDE

#define NEPTUNE_BEAM_WIDE 40

Referenced by btEffectRunNeptune().

Definition at line 65 of file battle_effect_neptune.c.

NEPTUNE_BEAM_FLASH

#define NEPTUNE_BEAM_FLASH 60

Referenced by btEffectRunNeptune().

Definition at line 66 of file battle_effect_neptune.c.

NEPTUNE_BEAM_LEVEL_MIN

#define NEPTUNE_BEAM_LEVEL_MIN 12

Referenced by btEffectRunNeptune().

Definition at line 67 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_SLOTS

#define NEPTUNE_COLUMN_SLOTS 16

The columns of water: NEPTUNE_COLUMN_SLOTS set out, the first NEPTUNE_COLUMNS falling NEPTUNE_COLUMN_INTERVAL ticks apart at NEPTUNE_COLUMN_SPEED pixels a tick until they reach the canvas row NEPTUNE_COLUMN_GROUND, where each stands NEPTUNE_COLUMN_LANDED_TICKS ticks, shaking the battle for the first NEPTUNE_COLUMN_SHAKE_TICKS.

Referenced by btEffectRunNeptune().

Definition at line 73 of file battle_effect_neptune.c.

NEPTUNE_COLUMNS

#define NEPTUNE_COLUMNS 5

Referenced by btEffectRunNeptune().

Definition at line 74 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_INTERVAL

#define NEPTUNE_COLUMN_INTERVAL 16

Referenced by btEffectRunNeptune().

Definition at line 75 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_SPEED

#define NEPTUNE_COLUMN_SPEED 16

Referenced by btEffectRunNeptune().

Definition at line 76 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_GROUND

#define NEPTUNE_COLUMN_GROUND 112

Referenced by btEffectRunNeptune().

Definition at line 77 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_LANDED_TICKS

#define NEPTUNE_COLUMN_LANDED_TICKS 32

Referenced by btEffectRunNeptune().

Definition at line 78 of file battle_effect_neptune.c.

NEPTUNE_COLUMN_SHAKE_TICKS

#define NEPTUNE_COLUMN_SHAKE_TICKS 8

Referenced by btEffectRunNeptune().

Definition at line 79 of file battle_effect_neptune.c.

Functions in detail

btEffectResetBg2Pa

void btEffectResetBg2Pa(void)

Sets BG2's horizontal scale back to one texel a pixel above the stretched lines.

Referenced by btEffectRunNeptune().

Definition at line 23 of file battle_effect_neptune.c.

btEffectSetBg2AffineScaleHalf

void btEffectSetBg2AffineScaleHalf(void)

Stretches BG2 to twice its width from the current line down.

Referenced by btEffectRunNeptune().

Definition at line 29 of file battle_effect_neptune.c.

btEffectRunNeptune

void btEffectRunNeptune(BATTLE_EFFECT_PARM *args)

Under storm clouds Neptune leaps out of the sea in a burst of spray, light gathers at its head and a beam of light joins its head to the sky, with a splash there; then five columns of water crash down on the targets, throwing up drops.

Abilities: Neptune.

References BattleEffectFlarePictures, BgScrollWork, btBackgroundLoadStub(), btCameraShake(), btEffectBuildWindowEdgeTable(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectDrawClippedCanvasLine(), btEffectResetBg2Pa(), btEffectSetBg2AffineScaleHalf(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), HeapSlots, NeptuneGravity, NeptuneObjectX, NeptuneObjectY, PerRepeat, ProjectionWork, Sint32, state, syCloseEvent(), syCos(), syIntFunction(), syRandom(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().

Referenced by btEffectRunSummon().

Definition at line 87 of file battle_effect_neptune.c.