- Ya se puede usar el mando en todas las secciones del juego

- Definido flag para compilar para consola de juegos (GAME_CONSOLE)
This commit is contained in:
2023-02-10 20:08:06 +01:00
parent 76e928e21d
commit 3be9d4459c
19 changed files with 393 additions and 354 deletions

View File

@@ -19,7 +19,7 @@ Director::Director(int argc, char *argv[])
section->subsection = SUBSECTION_LOGO_TO_INTRO;
#ifdef DEBUG
section->name = SECTION_PROG_GAME;
section->name = SECTION_PROG_LOGO;
#endif
// Crea e inicializa las opciones del programa
@@ -1241,6 +1241,7 @@ void Director::initInput()
input->bindKey(input_swap_palette, SDL_SCANCODE_F5);
input->bindKey(input_switch_music, SDL_SCANCODE_M);
input->bindKey(input_video_mode, SDL_SCANCODE_F);
input->bindKey(input_toggle_border, SDL_SCANCODE_B);
// Mando - Movimiento
input->bindGameControllerButton(input_jump, SDL_CONTROLLER_BUTTON_B);
@@ -1782,7 +1783,7 @@ void Director::runEnterID()
std::cout << "\n* SECTION: ENTER_ID" << std::endl;
}
// loadResources(section);
enterID = new EnterID(renderer, screen, asset, input, options, section);
enterID = new EnterID(renderer, screen, asset, options, section);
enterID->run();
delete enterID;
resource->free();