Effect tables: object scripts, curves and lookup tables of the object bank. More...
Go to the source code of this file.
Variables | |
| const u8 | gField_TileMessageOffsets [6] |
| The message of each searchable tile code from 242 to 247, as an offset from MsgTileChecked and MsgTileResult. | |
| const s16 | gBattleFx_TargetRangeByMode [25] |
| {field Psynergy kind, range in pixels}, ended by -1; a kind not listed reaches 16 pixels. | |
| const u8 | gAnimation_ChildPaletteCycle [8] = {1, 2, 3, 4, 3, 2, 1, 0} |
| The palette cycle of Animation_ChildPaletteCycle ((gFrameCount >> 1) & 7). | |
| const s32 | gBattleFx_ParticleEmitterScript [] |
| Grows from half size to full size, a step every 2 frames. | |
| const s32 | gBattleFx_RisingPulseScript [] |
| Pulses twice, then rests, over and over. | |
| const s32 | gBattleFx_ParticleScript [] |
| Rises for 60 frames, then disappears. | |
| const s32 | gBattleFx_MarkerParticleScript [] |
| const u8 | gDisplayTransition_NoiseWidths [34] |
| The width of the bars of window transition mode 0, by progress. | |
| const s8 | gDisplayTransition_EdgeOffsets [32] |
| The wobble of the circle edge of window transition mode 8. | |
| const u8 | gDisplayTransition_DitherTable [64] |
| 0 to 63 shuffled: the order in which the dissolve sets the pixels. | |
| const u16 | gBattlePalette_ChannelCurve [32] |
| Colour channel curves (0 to 31, to channels up to 0x7c00). | |
| const u16 | gBattlePalette_ChannelCurveLight [32] |
| const u16 | gBattlePalette_ChannelCurveContrast [32] |
| const struct BattleEffectEntry | gBattleFx_DefinitionTable [131] |
| Speaker definitions: {sprite, portrait (0xff for none), idle line flags}. | |
| const s32 | gObjectMotion_VariantScripts [97] |
| Squashes as many times as the variant (1 to 3): variant v starts at word (3 - v) * 32 and runs to the end. | |
| const u8 | gObjectGroup_BlinkChildValues [4] = {7, 0, 0, 0} |
| A child value by frame ((gFrameCount >> 1) & 3). | |
| const s16 | gDisplayScroll_WaveSine [256] |
| Sine times 4096, 256 steps to a turn. | |
| const s16 | gFieldFx_GroundParticleFrames [80] |
| {dx, dy, tile, shape, size} for each of 16 frames. | |
| const struct SparkleFrame | gFieldFx_SparkleFrames [32] |
| {dy, tile} | |
| const u32 | gBattleFx_PulseScales [3] = {0x10000, 0xf851, 16} |
| Two scales that alternate ((gFrameTick >> 2) & 1); nothing reads the third word. | |
| const s32 | gBattleFx_CommonParticleScript [] |
| [0] only frees the actor, +1 waits for it to arrive and frees it; +3 is gBattleFx_SourceHoldScript, which follows. | |
| const s32 | gBattleFx_SourceHoldScript [] |
| const s32 | gBattleFx_FragmentScript [] |
| const u16 | gBattleFx_CyclePatternWords [16] |
| An angle for each value of the right, left, up and down bits of the +Control Pad; 0xffff for none. | |
| const u8 | gBattleFx_QuadrantModes [4] = {3, 1, 2, 1} |
| const s32 | gBattleFx_BurstParticleObjectScript [] |
| Word +4 is gBattleFx_HeavyImpactScript. | |
| const u8 | gUnused_BattleFxBytes [4] = {3, 1, 2, 1} |
| The same four bytes as gBattleFx_QuadrantModes; nothing reads them. | |
| const s32 | gBattleFx_HeavyImpactScript [] |
| const s32 | gBattleFx_ShortEffectScript [] |
| The three scripts of gEffectScripts. | |
| const s32 | gBattleFx_MediumEffectScript [] |
| const s32 | gBattleFx_LongEffectScript [] |
| const s8 | gBattleFx_RandomChildValues [8] = {0, 0, 1, 2, 3, 4, 5, 6} |
| const u8 | gWorldMap_MarkerBlendCycle [32] |
| The brightness of the world map markers ((gFrameCount >> 1) & 31). | |
| const u16 | gWorldMap_CursorDirectionAngles [16] |
| An angle for each +Control Pad direction (eight of them); 0xffff for none. | |
Effect tables: object scripts, curves and lookup tables of the object bank.
Definition in file fxdata.c.
| const u8 gField_TileMessageOffsets[6] |
The message of each searchable tile code from 242 to 247, as an offset from MsgTileChecked and MsgTileResult.
Definition at line 24 of file fxdata.c.
Referenced by Field_SearchTile().
| const s16 gBattleFx_TargetRangeByMode[25] |
{field Psynergy kind, range in pixels}, ended by -1; a kind not listed reaches 16 pixels.
Definition at line 36 of file fxdata.c.
Referenced by Field_GetPsynergyTargetRange().
| const u8 gAnimation_ChildPaletteCycle[8] = {1, 2, 3, 4, 3, 2, 1, 0} |
The palette cycle of Animation_ChildPaletteCycle ((gFrameCount >> 1) & 7).
Definition at line 53 of file fxdata.c.
Referenced by Animation_ApplyChildPalette().
| const s32 gBattleFx_ParticleEmitterScript[] |
Grows from half size to full size, a step every 2 frames.
Definition at line 56 of file fxdata.c.
Referenced by BattleFx_StartRandomParticleEmitter(), and EffectRuntime_RunRisingObjectSequence().
| const s32 gBattleFx_RisingPulseScript[] |
Pulses twice, then rests, over and over.
Definition at line 75 of file fxdata.c.
Referenced by ItemDisplay_RaiseAboveLeader().
| const s32 gBattleFx_ParticleScript[] |
Rises for 60 frames, then disappears.
Definition at line 107 of file fxdata.c.
Referenced by BattleFx_StartRandomParticleEmitter(), and Object_InitializeSparkle().
| const s32 gBattleFx_MarkerParticleScript[] |
Definition at line 114 of file fxdata.c.
Referenced by FieldEffect_SpawnNearbyMarkers().
| const u8 gDisplayTransition_NoiseWidths[34] |
The width of the bars of window transition mode 0, by progress.
Definition at line 120 of file fxdata.c.
Referenced by DisplayTransition_UpdateScanlineTable().
| const s8 gDisplayTransition_EdgeOffsets[32] |
The wobble of the circle edge of window transition mode 8.
Definition at line 126 of file fxdata.c.
Referenced by DisplayTransition_UpdateScanlineTable().
| const u8 gDisplayTransition_DitherTable[64] |
0 to 63 shuffled: the order in which the dissolve sets the pixels.
Definition at line 132 of file fxdata.c.
Referenced by DisplayTransition_UpdateFrame().
| const u16 gBattlePalette_ChannelCurve[32] |
Colour channel curves (0 to 31, to channels up to 0x7c00).
Definition at line 140 of file fxdata.c.
Referenced by BattleFx_BuildBuffer().
| const u16 gBattlePalette_ChannelCurveLight[32] |
Definition at line 147 of file fxdata.c.
Referenced by BattleFx_BuildBuffer().
| const u16 gBattlePalette_ChannelCurveContrast[32] |
Definition at line 154 of file fxdata.c.
Referenced by BattleFx_BuildBuffer().
| const struct BattleEffectEntry gBattleFx_DefinitionTable[131] |
Speaker definitions: {sprite, portrait (0xff for none), idle line flags}.
BattleFx_FindDefinition searches all 131; the last is the default.
Definition at line 163 of file fxdata.c.
Referenced by BattleFx_FindDefinition().
| const s32 gObjectMotion_VariantScripts[97] |
Squashes as many times as the variant (1 to 3): variant v starts at word (3 - v) * 32 and runs to the end.
field.h declares it const u8[], and psynergy_effects.c adds (3 - v) << 7 bytes and reads it through an s32 *.
Definition at line 300 of file fxdata.c.
Referenced by ObjectMotion_SetVariantCallback().
| const u8 gObjectGroup_BlinkChildValues[4] = {7, 0, 0, 0} |
A child value by frame ((gFrameCount >> 1) & 3).
Definition at line 344 of file fxdata.c.
Referenced by ObjectGroup_ApplyIndexedChildValue().
| const s16 gDisplayScroll_WaveSine[256] |
Sine times 4096, 256 steps to a turn.
Definition at line 347 of file fxdata.c.
Referenced by DisplayScroll_BuildAndSwapHBlankPage(), and STATIC_ASSERT().
| const s16 gFieldFx_GroundParticleFrames[80] |
{dx, dy, tile, shape, size} for each of 16 frames.
Definition at line 383 of file fxdata.c.
Referenced by FieldFx_UpdateGroundParticles().
| const struct SparkleFrame gFieldFx_SparkleFrames[32] |
| const u32 gBattleFx_PulseScales[3] = {0x10000, 0xf851, 16} |
Two scales that alternate ((gFrameTick >> 2) & 1); nothing reads the third word.
Definition at line 440 of file fxdata.c.
Referenced by BattleFx_SetObjectAlternatingWords().
| const s32 gBattleFx_CommonParticleScript[] |
[0] only frees the actor, +1 waits for it to arrive and frees it; +3 is gBattleFx_SourceHoldScript, which follows.
Definition at line 444 of file fxdata.c.
Referenced by BattleEffect_SpawnBurstParticleField(), BattleFx_InitializeFallingFragment(), BattleFx_RunSparkEmitter(), BattleFx_RunVenusDjinnCapture(), BattleFx_UpdateDriftingFallObject(), BattleFx_UpdateOrbitingParticleFade(), BattleFx_UpdateShrinkingOrbitObject(), BattleFx_WanderAroundAnchor(), FieldFx_RunForce(), FieldFx_RunLiftOnTarget(), FieldFx_SpawnRandomAngleTriplet(), FieldFx_UpdateScaledArcObjectA(), FieldFx_UpdateScaledArcObjectB(), and SpawnHeavyImpactEffect().
| const s32 gBattleFx_SourceHoldScript[] |
Definition at line 450 of file fxdata.c.
Referenced by BattleFx_SteerLiftedTarget(), and BattleFx_SteerPushedTarget().
| const s32 gBattleFx_FragmentScript[] |
Definition at line 456 of file fxdata.c.
Referenced by BattleFx_StartItemBreak(), BattleFx_SteerLiftedTarget(), SpawnHeavyImpactEffect(), and UpdateRisingParticleBurst().
| const u16 gBattleFx_CyclePatternWords[16] |
An angle for each value of the right, left, up and down bits of the +Control Pad; 0xffff for none.
Definition at line 466 of file fxdata.c.
Referenced by Input_GetDpadAngle().
| const u8 gBattleFx_QuadrantModes[4] = {3, 1, 2, 1} |
Definition at line 473 of file fxdata.c.
Referenced by BattleFx_SteerPushedTarget().
| const s32 gBattleFx_BurstParticleObjectScript[] |
Word +4 is gBattleFx_HeavyImpactScript.
Definition at line 476 of file fxdata.c.
Referenced by FieldFx_RunForce(), and FieldFx_RunGrowth().
| const u8 gUnused_BattleFxBytes[4] = {3, 1, 2, 1} |
| const s32 gBattleFx_HeavyImpactScript[] |
| const s32 gBattleFx_ShortEffectScript[] |
| const s32 gBattleFx_MediumEffectScript[] |
| const s32 gBattleFx_LongEffectScript[] |
| const s8 gBattleFx_RandomChildValues[8] = {0, 0, 1, 2, 3, 4, 5, 6} |
Definition at line 506 of file fxdata.c.
Referenced by BattleEffect_SetRandomTableValueOnObject().
| const u8 gWorldMap_MarkerBlendCycle[32] |
The brightness of the world map markers ((gFrameCount >> 1) & 31).
Definition at line 509 of file fxdata.c.
Referenced by Map_UpdateWorldMapMarkers().
| const u16 gWorldMap_CursorDirectionAngles[16] |
An angle for each +Control Pad direction (eight of them); 0xffff for none.
Definition at line 515 of file fxdata.c.
Referenced by Map_UpdateWorldMapMarkers().