diff --git a/data/config/param.txt b/data/config/param.txt index d12ecf0..1c1a108 100644 --- a/data/config/param.txt +++ b/data/config/param.txt @@ -7,7 +7,7 @@ numSquaresWidth 160 numSquaresHeight 120 fadeRandomSquaresDelay 1 fadeRandomSquaresMult 500 -fadePostDuration 50 +fadePostDuration 80 venetianSize 16 #SCOREBOARD diff --git a/source/common/screen.cpp b/source/common/screen.cpp index f7ecd77..60798c3 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -51,6 +51,9 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Input * // Establece el modo de video setVideoMode(options->video.mode); + + // Muestra la ventana + SDL_ShowWindow(window); } // Destructor diff --git a/source/director.cpp b/source/director.cpp index e5d761b..ba097c4 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -214,7 +214,7 @@ bool Director::initSDL() incW = options->video.border.width * 2; incH = options->video.border.height * 2; } - window = SDL_CreateWindow(WINDOW_CAPTION, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, (param->gameWidth + incW) * options->video.window.size, (param->gameHeight + incH) * options->video.window.size, 0); + window = SDL_CreateWindow(WINDOW_CAPTION, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, (param->gameWidth + incW) * options->video.window.size, (param->gameHeight + incH) * options->video.window.size, SDL_WINDOW_HIDDEN); if (window == nullptr) { if (options->console) diff --git a/source/game.cpp b/source/game.cpp index 6a7fc87..829d65d 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1552,7 +1552,9 @@ void Game::updatePlayers() if (demo.enabled && !player->isAlive()) { - section->name = SECTION_PROG_HI_SCORE_TABLE; + fade->setType(FADE_RANDOM_SQUARE); + fade->activate(); + //section->name = SECTION_PROG_HI_SCORE_TABLE; } } } @@ -2537,12 +2539,23 @@ void Game::update() if (demo.counter < TOTAL_DEMO_DATA) { demo.counter++; + if (demo.counter == TOTAL_DEMO_DATA - 200) + { + fade->setType(FADE_RANDOM_SQUARE); + fade->activate(); + } } else { section->name = SECTION_PROG_HI_SCORE_TABLE; return; } + + if (fade->hasEnded()) + { + section->name = SECTION_PROG_HI_SCORE_TABLE; + return; + } } #ifdef RECORDING