GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
game_variables.h File Reference

Game global game variables struct definition. More...

#include "blind.h"
#include "hand.h"
#include "random.h"
#include <tonc.h>

Go to the source code of this file.

Data Structures

struct  GameVariables
 A central location for all game variables. More...
 

Macros

#define GAME_SPEED_MIN   1
 
#define GAME_SPEED_MAX   4
 
#define VOLUME_OPTION_MIN   0
 
#define VOLUME_OPTION_MAX   5
 
#define VOLUME_OPTION_INCREMENT   20
 
#define DEFAULT_GAME_SPEED   1
 
#define DEFAULT_MUSIC_VOLUME   VOLUME_OPTION_MAX
 
#define DEFAULT_SOUND_VOLUME   VOLUME_OPTION_MAX
 
#define MAX_HANDS   4
 
#define MAX_DISCARDS   4
 
#define DEFAULT_HAND_SIZE   8
 

Variables

GameVariables g_game_vars
 

Detailed Description

Game global game variables struct definition.

Definition in file game_variables.h.

Macro Definition Documentation

◆ DEFAULT_GAME_SPEED

#define DEFAULT_GAME_SPEED   1

Definition at line 23 of file game_variables.h.

◆ DEFAULT_HAND_SIZE

#define DEFAULT_HAND_SIZE   8

Definition at line 30 of file game_variables.h.

◆ DEFAULT_MUSIC_VOLUME

#define DEFAULT_MUSIC_VOLUME   VOLUME_OPTION_MAX

Definition at line 24 of file game_variables.h.

◆ DEFAULT_SOUND_VOLUME

#define DEFAULT_SOUND_VOLUME   VOLUME_OPTION_MAX

Definition at line 25 of file game_variables.h.

◆ GAME_SPEED_MAX

#define GAME_SPEED_MAX   4

Definition at line 16 of file game_variables.h.

◆ GAME_SPEED_MIN

#define GAME_SPEED_MIN   1

Definition at line 15 of file game_variables.h.

◆ MAX_DISCARDS

#define MAX_DISCARDS   4

Definition at line 28 of file game_variables.h.

◆ MAX_HANDS

#define MAX_HANDS   4

Definition at line 27 of file game_variables.h.

◆ VOLUME_OPTION_INCREMENT

#define VOLUME_OPTION_INCREMENT   20

Definition at line 21 of file game_variables.h.

◆ VOLUME_OPTION_MAX

#define VOLUME_OPTION_MAX   5

Definition at line 20 of file game_variables.h.

◆ VOLUME_OPTION_MIN

#define VOLUME_OPTION_MIN   0

Definition at line 19 of file game_variables.h.

Variable Documentation

◆ g_game_vars

GameVariables g_game_vars
extern

Definition at line 98 of file game.c.