Trabajando en las notificaciones
This commit is contained in:
@@ -70,7 +70,7 @@ void Screen::blit()
|
|||||||
SDL_RenderCopy(renderer, gameCanvas, nullptr, &dest);
|
SDL_RenderCopy(renderer, gameCanvas, nullptr, &dest);
|
||||||
|
|
||||||
// Dibuja las notificaciones
|
// Dibuja las notificaciones
|
||||||
// renderNotifications();
|
renderNotifications();
|
||||||
|
|
||||||
// Muestra por pantalla el renderizador
|
// Muestra por pantalla el renderizador
|
||||||
SDL_RenderPresent(renderer);
|
SDL_RenderPresent(renderer);
|
||||||
@@ -360,10 +360,10 @@ void Screen::showText(std::string text)
|
|||||||
// Dibuja las notificaciones
|
// Dibuja las notificaciones
|
||||||
void Screen::renderNotifications()
|
void Screen::renderNotifications()
|
||||||
{
|
{
|
||||||
if (!notifyActive)
|
// if (!notifyActive)
|
||||||
{
|
// {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight);
|
SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight);
|
||||||
notify->render();
|
notify->render();
|
||||||
|
|||||||
@@ -55,12 +55,11 @@ Director::Director(int argc, char *argv[])
|
|||||||
initInput();
|
initInput();
|
||||||
screen = new Screen(window, renderer, asset, options);
|
screen = new Screen(window, renderer, asset, options);
|
||||||
screen->setBorderColor(borderColor);
|
screen->setBorderColor(borderColor);
|
||||||
// screen->setVideoMode(options->videoMode);
|
|
||||||
debug = new Debug(renderer, screen, asset);
|
debug = new Debug(renderer, screen, asset);
|
||||||
music = JA_LoadMusic(asset->get("title.ogg").c_str());
|
music = JA_LoadMusic(asset->get("title.ogg").c_str());
|
||||||
|
|
||||||
// Inicializa los servicios online
|
// Inicializa los servicios online
|
||||||
// initOnline();
|
initOnline();
|
||||||
}
|
}
|
||||||
|
|
||||||
Director::~Director()
|
Director::~Director()
|
||||||
|
|||||||
@@ -131,6 +131,10 @@ void Game::checkEventHandler()
|
|||||||
case SDL_SCANCODE_D:
|
case SDL_SCANCODE_D:
|
||||||
goToRoom(BORDER_RIGHT);
|
goToRoom(BORDER_RIGHT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SDL_SCANCODE_F6:
|
||||||
|
screen->showText("MAMA MIRA! SIN MANOS!");
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case SDL_SCANCODE_M:
|
case SDL_SCANCODE_M:
|
||||||
|
|||||||
Reference in New Issue
Block a user