Trabajando en las nuevas pantallas

This commit is contained in:
2022-08-28 12:24:37 +02:00
parent 5405652f00
commit d9cb7f68e2
13 changed files with 130 additions and 62 deletions

View File

@@ -27,7 +27,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
section.subsection = SUBSECTION_GAME_PLAY;
musicEnabled = true;
debug = false;
debug = true;
musicEnabled = !debug;
}
@@ -117,7 +117,7 @@ void Game::checkInput()
if (input->checkInput(INPUT_BUTTON_2, REPEAT_FALSE))
{
debug = !debug;
musicEnabled = !debug;
/*musicEnabled = !debug;
if (musicEnabled)
{
JA_PlayMusic(music);
@@ -125,7 +125,7 @@ void Game::checkInput()
else
{
JA_StopMusic();
}
}*/
}
if (input->checkInput(INPUT_BUTTON_3, REPEAT_FALSE))
@@ -195,7 +195,7 @@ void Game::renderDebugInfo()
text = "state " + std::to_string(player->state);
debugText->write(0, line += 6, text, -1);
text = map->getRoomFileName(b_top) + " " + map->getRoomFileName(b_right) + " " + map->getRoomFileName(b_bottom) + " " + map->getRoomFileName(b_left);
text = map->getName() + " (" + map->getRoomFileName(b_top) + ", " + map->getRoomFileName(b_right) + ", " + map->getRoomFileName(b_bottom) + ", " + map->getRoomFileName(b_left) + ")";
debugText->write(0, line += 6, text, -1);
text = "hookedOn = " + std::to_string(player->hookedOnMovingPlatform);