src/battle_effect/battle_effect_neptune.c
The Neptune summon, and the two line functions that set BG2's horizontal scale. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#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. |
#define | NEPTUNE_COLUMN_TICKS 144 | |
#define | NEPTUNE_FLARES_TICK 152 | The first stage's flares converging on Neptune's head, and the burst at its end. |
#define | NEPTUNE_BURST_TICK 222 | |
#define | NEPTUNE_FLARE_SHEET 20000 | BlueGlowSheet's flare pictures, after the spray. |
#define | NEPTUNE_SPLASH PICTURE_BYTES(WATER_WAVE) | The splash where the beam meets the head, growing and curling. |
#define | NEPTUNE_COLUMN_HEAD PICTURE_BYTES(BLUE_FLAME_COLUMN) | A water column's head, after its shaft: BlueFlameSheet's pictures. |
#define | NEPTUNE_SPRITES 8 | Neptune is drawn by eight 32x32 sprites in two rows of four, each NEPTUNE_SPRITE_SPACING pixels from the next at its scale of 1.5 (NeptuneUnitScale). |
#define | NEPTUNE_SPRITE_ROW 4 | |
#define | NEPTUNE_SPRITE_SPACING (32 * 3 / 2) | |
#define | NEPTUNE_FIRST_SPRAY_DROPS 712 | The drops of the first spray, as Neptune leaps out of the sea. |
#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. |
#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. |
#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. |
#define | NEPTUNE_FLARE_TICKS 32 | |
#define | NEPTUNE_FLARES_X 112 | |
#define | NEPTUNE_FLARES_Y 62 | |
#define | NEPTUNE_BURST_SPARKS 64 | The sparks of the burst, falling from it. |
#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. |
#define | NEPTUNE_BEAM_WIDE 40 | |
#define | NEPTUNE_BEAM_FLASH 60 | |
#define | NEPTUNE_BEAM_LEVEL_MIN 12 | |
#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. |
#define | NEPTUNE_COLUMNS 5 | |
#define | NEPTUNE_COLUMN_INTERVAL 16 | |
#define | NEPTUNE_COLUMN_SPEED 16 | |
#define | NEPTUNE_COLUMN_GROUND 112 | |
#define | NEPTUNE_COLUMN_LANDED_TICKS 32 | |
#define | NEPTUNE_COLUMN_SHAKE_TICKS 8 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectResetBg2Pa (void) | Sets BG2's horizontal scale back to one texel a pixel above the stretched lines. |
void | btEffectSetBg2AffineScaleHalf (void) | Stretches BG2 to twice its width from the current line down. |
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. |
Description
The Neptune summon, and the two line functions that set BG2's horizontal
scale. 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 19 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_TICKS
#define NEPTUNE_COLUMN_TICKS 144
Referenced by btEffectRunNeptune().
Definition at line 20 of file battle_effect_neptune.c.
NEPTUNE_FLARES_TICK
#define NEPTUNE_FLARES_TICK 152
The first stage's flares converging on Neptune's head, and the burst at its end.
Referenced by btEffectRunNeptune().
Definition at line 23 of file battle_effect_neptune.c.
NEPTUNE_BURST_TICK
#define NEPTUNE_BURST_TICK 222
Referenced by btEffectRunNeptune().
Definition at line 24 of file battle_effect_neptune.c.
NEPTUNE_FLARE_SHEET
#define NEPTUNE_FLARE_SHEET 20000
BlueGlowSheet's flare pictures, after the spray.
Referenced by btEffectRunNeptune().
Definition at line 27 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 29 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 31 of file battle_effect_neptune.c.
NEPTUNE_SPRITES
#define NEPTUNE_SPRITES 8
Neptune is drawn by eight 32x32 sprites in two rows of four, each
NEPTUNE_SPRITE_SPACING pixels from the next at its scale of 1.5
(NeptuneUnitScale).
Referenced by btEffectRunNeptune().
Definition at line 36 of file battle_effect_neptune.c.
NEPTUNE_SPRITE_ROW
#define NEPTUNE_SPRITE_ROW 4
Referenced by btEffectRunNeptune().
Definition at line 37 of file battle_effect_neptune.c.
NEPTUNE_SPRITE_SPACING
#define NEPTUNE_SPRITE_SPACING (32 * 3 / 2)
Referenced by btEffectRunNeptune().
Definition at line 38 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 40 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 43 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 46 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 50 of file battle_effect_neptune.c.
NEPTUNE_FLARE_TICKS
#define NEPTUNE_FLARE_TICKS 32
Referenced by btEffectRunNeptune().
Definition at line 51 of file battle_effect_neptune.c.
NEPTUNE_FLARES_X
#define NEPTUNE_FLARES_X 112
Referenced by btEffectRunNeptune().
Definition at line 52 of file battle_effect_neptune.c.
NEPTUNE_FLARES_Y
#define NEPTUNE_FLARES_Y 62
Referenced by btEffectRunNeptune().
Definition at line 53 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 55 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 60 of file battle_effect_neptune.c.
NEPTUNE_BEAM_WIDE
#define NEPTUNE_BEAM_WIDE 40
Referenced by btEffectRunNeptune().
Definition at line 61 of file battle_effect_neptune.c.
NEPTUNE_BEAM_FLASH
#define NEPTUNE_BEAM_FLASH 60
Referenced by btEffectRunNeptune().
Definition at line 62 of file battle_effect_neptune.c.
NEPTUNE_BEAM_LEVEL_MIN
#define NEPTUNE_BEAM_LEVEL_MIN 12
Referenced by btEffectRunNeptune().
Definition at line 63 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 69 of file battle_effect_neptune.c.
NEPTUNE_COLUMNS
#define NEPTUNE_COLUMNS 5
Referenced by btEffectRunNeptune().
Definition at line 70 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_INTERVAL
#define NEPTUNE_COLUMN_INTERVAL 16
Referenced by btEffectRunNeptune().
Definition at line 71 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_SPEED
#define NEPTUNE_COLUMN_SPEED 16
Referenced by btEffectRunNeptune().
Definition at line 72 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_GROUND
#define NEPTUNE_COLUMN_GROUND 112
Referenced by btEffectRunNeptune().
Definition at line 73 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_LANDED_TICKS
#define NEPTUNE_COLUMN_LANDED_TICKS 32
Referenced by btEffectRunNeptune().
Definition at line 74 of file battle_effect_neptune.c.
NEPTUNE_COLUMN_SHAKE_TICKS
#define NEPTUNE_COLUMN_SHAKE_TICKS 8
Referenced by btEffectRunNeptune().
Definition at line 75 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 6 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 12 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(), btEffectDrawClippedCanvasLine(), btEffectPosProjectScaledBattler(), btEffectResetBg2Pa(), btEffectSetBg2AffineScaleHalf(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectSpriteCreateWithTiles(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btEffectWipeCanvas(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), MapGridMetatileBuffer, NeptuneGravity, NeptuneUnitScale, PerWork, ProjectionWork, Sint32, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syDMAXCopy(), syIntFunction(), syPaletteLoadBasicSpriteColors(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin(), sySoundPlayStub(), sySpritePlacementValues(), sySynch(), syWordsCopy() and VramCacheEntries.
Referenced by btEffectRunSummon().
Definition at line 83 of file battle_effect_neptune.c.