Afegit el tamany de la coffee_machine als parametres

This commit is contained in:
2025-01-04 10:04:49 +01:00
parent eaab646cd3
commit 5e817ef1d0
5 changed files with 35 additions and 16 deletions

View File

@@ -11,6 +11,8 @@ struct ParamGame
int width; // Ancho de la resolucion nativa del juego
int height; // Alto de la resolucion nativa del juego
int item_size; // Tamaño de los items del juego
int coffee_machine_w; // Ancho de la máquina de café
int coffee_machine_h; // Alto de la máquina de café
Zone play_area; // Rectangulo con la posición de la zona de juego
Zone game_area; // Rectangulo con las dimensiones del juego
int enter_name_seconds; // Duración en segundos para introducir el nombre al finalizar la partida
@@ -63,7 +65,8 @@ struct ParamNotification
};
// Estructura para almacenar todos los parámetros del juego
struct Param {
struct Param
{
ParamGame game;
ParamFade fade;
SDL_Rect scoreboard;
@@ -72,14 +75,14 @@ struct Param {
std::vector<ParamBalloon> balloon;
ParamNotification notification;
Param() : game(), fade(), scoreboard(), title(), background(), notification() {
Param() : game(), fade(), scoreboard(), title(), background(), notification()
{
balloon.reserve(4);
}
};
extern Param param;
extern Param param;
// Establece valores para los parametros a partir de un fichero de texto