From b1887fe6da2ca89d788b7a878309f828f8461b06 Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Fri, 15 Sep 2023 07:45:21 +0200 Subject: [PATCH] Fix: No se limpiaba la pantalla tras entrar el JailerID --- source/intro.cpp | 5 +++++ source/main.cpp | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/intro.cpp b/source/intro.cpp index a7878a7..4ce3ff1 100644 --- a/source/intro.cpp +++ b/source/intro.cpp @@ -242,6 +242,11 @@ void Intro::run() JA_SetVolume(64); JA_PlayMusic(loadingSound1); + // Limpia la pantalla + screen->start(); + screen->clean(); + screen->blit(); + while (section->name == SECTION_PROG_INTRO) { update(); diff --git a/source/main.cpp b/source/main.cpp index 0f7fc17..0b067dd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -8,9 +8,11 @@ Empezado en Castalla el 01/07/2022. #include "director.h" #include +using namespace std; + int main(int argc, char *argv[]) { - std::cout << "Starting the game...\n\n"; + cout << "Starting the game..." << endl; // Crea el objeto Director Director *director = new Director(argc, argv); @@ -22,7 +24,7 @@ int main(int argc, char *argv[]) delete director; director = nullptr; - std::cout << "\nShutting down the game..." << std::endl; + cout << "\nShutting down the game..." << endl; return 0; }