diff --git a/source/common/screen.cpp b/source/common/screen.cpp index 0bd660a..47815da 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -70,7 +70,7 @@ void Screen::blit() SDL_RenderCopy(renderer, gameCanvas, nullptr, &dest); // Dibuja las notificaciones - // renderNotifications(); + renderNotifications(); // Muestra por pantalla el renderizador SDL_RenderPresent(renderer); @@ -360,10 +360,10 @@ void Screen::showText(std::string text) // Dibuja las notificaciones void Screen::renderNotifications() { - if (!notifyActive) - { - return; - } + // if (!notifyActive) + // { + // return; + // } SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight); notify->render(); diff --git a/source/director.cpp b/source/director.cpp index 5be96bc..e1aa238 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -55,12 +55,11 @@ Director::Director(int argc, char *argv[]) initInput(); screen = new Screen(window, renderer, asset, options); screen->setBorderColor(borderColor); - // screen->setVideoMode(options->videoMode); debug = new Debug(renderer, screen, asset); music = JA_LoadMusic(asset->get("title.ogg").c_str()); // Inicializa los servicios online - // initOnline(); + initOnline(); } Director::~Director() diff --git a/source/game.cpp b/source/game.cpp index b8434ba..6e7f57a 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -131,6 +131,10 @@ void Game::checkEventHandler() case SDL_SCANCODE_D: goToRoom(BORDER_RIGHT); break; + + case SDL_SCANCODE_F6: + screen->showText("MAMA MIRA! SIN MANOS!"); + break; #endif case SDL_SCANCODE_M: