Alchemy
Loading...
Searching...
No Matches

psynergy_effects.c

Go to the documentation of this file.
1/// @file
2/// The field Psynergy and event object: the commands scene scripts run (waits,
3/// items, questions, destinations, actors, messages and the camera), moving
4/// on the field (views, jumps and climbing), the field's weather and wavy
5/// backgrounds, Djinn joining the party, each field Psynergy's effect, the
6/// effect slots its particles use, and the world map screen.
7/// psynergy_effects_internal.h holds the includes and the macros, types and
8/// inline helpers more than one part uses; the code is in the files under
9/// psynergy_effects/, included here in ROM order, each opening with what it
10/// holds (head -2 psynergy_effects/*.c). The ROM shows one object; the parts
11/// are ours, cut where one family ends and the next begins.
12///
13/// A field Psynergy reaches its effect through its field kind, the type column
14/// of games/tbs/src/game/actions.tsv; dispatch.c runs the kind's handlers.
15///
16/// README.md in this folder gives the words, prefixes and spellings the parts
17/// share.
18
20
21// The object's code, in ROM order. Each part is compiled here, as part of
22// this one object, never on its own: the order of these includes is the
23// order of the code in the ROM.
Event commands on actors: placing, moving and animating them.
Actor scripts: moving, turning and the built-in actions.
The swelling arcs over the caster.
Avoid.
The event camera.
Carry: two hands lift the target, move it with the d-pad and drop it.
Catch.
Jumping and climbing on the field.
Cloak.
An actor's screen position, the encounter transition, context effects.
A Djinni's hop before its battle, joining the party, the effect slots.
Douse.
Effect slots: the particles Psynergy effects move and draw.
Force.
Halt.
A Jupiter Djinni joining the party.
Lift.
A Mars Djinni joining the party.
A Mercury Djinni joining the party.
Mind Read: scanline waves, shifting colours and flowing particles.
Move: a hand pushes the target, steered with the d-pad.
Running a field Psynergy by its kind, and helpers its effects share.
Event commands: waits, received items, questions and destinations.
Frost.
Growth.
Messages shown at an actor, and the speaker's voice.
An effect's work: setting it up, its caster and target, cleaning up.
The view bounds, zoom transitions and objects linked to an actor.
The world map screen: place markers, the cursor and the place name.
Ply.
What every part of psynergy_effects.c shares: its includes and the macros and types more than one par...
Battles and destinations an event requests, and the queued sound.
Retreat.
Reveal.
A Venus Djinni joining the party.
The wavy background: scanline scroll offsets fed by HBlank DMA.
Ground particles, motes, sparkles and lightning on the field.
Whirlwind.