Arreglado el modo demo

Grabada una nueva demo
This commit is contained in:
2024-07-05 20:40:08 +02:00
parent dc09c189e9
commit f73eab7a77
8 changed files with 109 additions and 82 deletions

View File

@@ -136,7 +136,7 @@ void Director::initInput()
// Mando - Otros
input->bindGameControllerButton(input_accept, SDL_CONTROLLER_BUTTON_START);
input->bindGameControllerButton(input_cancel, SDL_CONTROLLER_BUTTON_A);
input->bindGameControllerButton(input_pause, SDL_CONTROLLER_BUTTON_START);
input->bindGameControllerButton(input_pause, SDL_CONTROLLER_BUTTON_B);
input->bindGameControllerButton(input_exit, SDL_CONTROLLER_BUTTON_BACK);
// Pone valores por defecto a las opciones de control
@@ -758,7 +758,7 @@ void Director::runTitle()
// Ejecuta la seccion de juego donde se juega
void Director::runGame()
{
const int playerID = section->subsection == SUBSECTION_GAME_PLAY_1P ? 0 : 1;
const int playerID = section->subsection == SUBSECTION_GAME_PLAY_1P ? 1 : 2;
game = new Game(playerID, 0, renderer, screen, asset, lang, input, false, param, options, section, getMusic(musics, "playing.ogg"));
game->run();
delete game;