Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
gauge.c File Reference

The gauge game. More...

#include "field/field_mode.h"
Include dependency graph for gauge.c:

Go to the source code of this file.

Functions

static void moveGaugeCursor (GaugeGame *task)
 The cursor goes back and forth over the gauge at the game's speed.
 
static void drawGauge (GaugeGame *task)
 Draws the four frames sprite (0x60-0x63) at pos, next to the player, then the gauge: its cursor, its row of cells and its frame.
 
void FIELDSTG_runGauge (GaugeGame *task)
 A gauge game: a cursor runs back and forth along one of the gauge rows until cross is pressed, then slows down and stops; the cell it stops on (2 bits) fails (0) or calls FIELDSTG_battleFuncs.startEventBattle with 4 (1) or 7 (2).
 
GaugeGame * FIELDSTG_createGauge (Vec2 pos)
 Creates the gauge game at a tile.
 

Detailed Description

The gauge game.

Definition in file gauge.c.

Function Documentation

◆ moveGaugeCursor()

static void moveGaugeCursor ( GaugeGame *  task)
inlinestatic

The cursor goes back and forth over the gauge at the game's speed.

< the row's 48 pixels, in 1/256 pixels

< the row's 48 pixels, in 1/256 pixels

Definition at line 6 of file gauge.c.

Referenced by FIELDSTG_runGauge().

Here is the caller graph for this function:

◆ drawGauge()

static void drawGauge ( GaugeGame *  task)
inlinestatic

Draws the four frames sprite (0x60-0x63) at pos, next to the player, then the gauge: its cursor, its row of cells and its frame.

< the map, its objects and characters, and the menus

< the map, its objects and characters, and the menus

< where it is drawn, on the screen

< + the row

< where it is drawn, on the screen

< its sprites, of FIELD_SPRITES_FILE's sheet 1

< where it is drawn, on the screen

Definition at line 26 of file gauge.c.

Referenced by FIELDSTG_runGauge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIELDSTG_runGauge()

void FIELDSTG_runGauge ( GaugeGame *  task)

A gauge game: a cursor runs back and forth along one of the gauge rows until cross is pressed, then slows down and stops; the cell it stops on (2 bits) fails (0) or calls FIELDSTG_battleFuncs.startEventBattle with 4 (1) or 7 (2).

gauge.c

In Europe the rows are random only while GAME.randomGauges lasts, then it is GAUGE_EMPTY_ROW. The match depends on the cell read and shifted as two statements.

< the random rows of FIELDSTG_gaugeRows

< the European version's, all zeros

< frames before the cursor runs

< until cross is pressed

< one time in four

< SYSTEM06

< one time in four

< frames on the stopped cursor

Definition at line 52 of file gauge.c.

Referenced by FIELDSTG_createGauge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIELDSTG_createGauge()

GaugeGame * FIELDSTG_createGauge ( Vec2  pos)

Creates the gauge game at a tile.

Definition at line 158 of file gauge.c.

Referenced by FIELDSTG_startActorGauge().

Here is the call graph for this function:
Here is the caller graph for this function: