Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
step_tile_sequences.inc.c
Go to the documentation of this file.
1/* Plays a sequence of StageTileFrame animations on tile */
3 s32 dt;
4
5 if (depth == 0) {
7 if (dt > 4) {
8 dt = 4;
9 }
10 cur->timer -= dt;
11 }
12 if (cur->timer <= 0) {
13 if (seqs[cur->seq][cur->index].last) {
14 cur->seq++;
15 cur->index = 0;
16 if (seqs[cur->seq] == NULL) {
17 cur->seq = 0;
18 }
19 } else {
20 cur->index++;
21 }
22 cur->timer += seqs[cur->seq][cur->index].duration;
23 stepTileSequences(tile, seqs, cur, depth + 1);
24 }
25 if (depth == 0) {
26 tile->frame = seqs[cur->seq][cur->index].frame;
27 tile->clutRow = seqs[cur->seq][cur->index].clutRow;
28 }
29}
#define NULL
Definition common.h:17
signed int s32
Definition common.h:11
GfxState GFX
GFX: the graphics state and its methods.
Definition display.c:209
void stepTileSequences(StageTile *tile, StageTileFrame **seqs, StageTileCursor *cur, s32 depth)
Plays a sequence of StageTileFrame animations on tile.
s32(* getFrameTime)(void)
Definition gfx.h:32
GfxFuncs funcs
Definition gfx.h:77
Where a sequence of StageTileFrame animations (NULL-terminated) is at.
Definition stage.h:273
A frame of a StageTileFrame animation, which sets two frames of a map object.
Definition stage.h:265
u8 last
go to the next animation of the sequence after it
Definition stage.h:269
u8 clutRow
for StageTile.clutRow
Definition stage.h:268
An object of a map, which FIELDSTG draws: a record of the table at FieldState.objects,...
Definition field_map.h:208