diff --git a/source/common/screen.cpp b/source/common/screen.cpp index 49d6b99..2158bd3 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -96,6 +96,9 @@ void Screen::setVideoMode(int videoMode) // Muestra el puntero SDL_ShowCursor(SDL_ENABLE); + // Esconde la ventana + //SDL_HideWindow(window); + if (options->borderEnabled) { windowWidth = gameCanvasWidth + borderWidth; @@ -113,6 +116,9 @@ void Screen::setVideoMode(int videoMode) // Modifica el tamaño de la ventana SDL_SetWindowSize(window, windowWidth * options->windowSize, windowHeight * options->windowSize); SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); + + // Muestra la ventana + //SDL_ShowWindow(window); } // Si está activo el modo de pantalla completa añade el borde diff --git a/source/credits.cpp b/source/credits.cpp index 7ad6ff9..478fa2d 100644 --- a/source/credits.cpp +++ b/source/credits.cpp @@ -140,6 +140,7 @@ void Credits::iniTexts() keys = "A,D AND W"; } +#ifndef GAME_CONSOLE texts.clear(); texts.push_back({"", stringToColor(options->palette, "white")}); texts.push_back({"INSTRUCTIONS:", stringToColor(options->palette, "yellow")}); @@ -153,11 +154,11 @@ void Credits::iniTexts() texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")}); texts.push_back({"", stringToColor(options->palette, "white")}); texts.push_back({keys + " TO MOVE AND JUMP", stringToColor(options->palette, "white")}); - texts.push_back({"M TO TURN ON/OFF THE MUSIC", stringToColor(options->palette, "white")}); - texts.push_back({"H TO HOLD/PAUSE THE GAME", stringToColor(options->palette, "white")}); - texts.push_back({"F1-F4 TO CHANGE WINDOWS SIZE", stringToColor(options->palette, "white")}); - texts.push_back({"F TO SWITCH TO FULLSCREEN", stringToColor(options->palette, "white")}); - texts.push_back({"B TO SWITCH THE BORDER SCREEN", stringToColor(options->palette, "white")}); + texts.push_back({"M TO SWITCH THE MUSIC", stringToColor(options->palette, "white")}); + texts.push_back({"H TO PAUSE THE GAME", stringToColor(options->palette, "white")}); + texts.push_back({"F1-F2 TO CHANGE WINDOWS SIZE", stringToColor(options->palette, "white")}); + texts.push_back({"F3 TO SWITCH TO FULLSCREEN", stringToColor(options->palette, "white")}); + texts.push_back({"B TO TOOGLE THE BORDER SCREEN", stringToColor(options->palette, "white")}); texts.push_back({"", stringToColor(options->palette, "white")}); texts.push_back({"", stringToColor(options->palette, "white")}); @@ -168,6 +169,36 @@ void Credits::iniTexts() texts.push_back({"I LOVE JAILGAMES! ", stringToColor(options->palette, "white")}); texts.push_back({"", stringToColor(options->palette, "white")}); +#else + texts.clear(); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"INSTRUCTIONS:", stringToColor(options->palette, "yellow")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"HELP JAILDOC TO GET BACK ALL", stringToColor(options->palette, "white")}); + texts.push_back({"HIS PROJECTS AND GO TO THE", stringToColor(options->palette, "white")}); + texts.push_back({"JAIL TO FINISH THEM", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + + texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"B TO JUMP", stringToColor(options->palette, "white")}); + texts.push_back({"R TO SWITCH THE MUSIC", stringToColor(options->palette, "white")}); + texts.push_back({"L TO SWAP THE COLOR PALETTE", stringToColor(options->palette, "white")}); + texts.push_back({"START TO PAUSE", stringToColor(options->palette, "white")}); + texts.push_back({"SELECT TO EXIT", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + + texts.push_back({"A GAME BY JAILDESIGNER", stringToColor(options->palette, "yellow")}); + texts.push_back({"MADE ON SUMMER/FALL 2022", stringToColor(options->palette, "yellow")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); + + texts.push_back({"I LOVE JAILGAMES! ", stringToColor(options->palette, "white")}); + texts.push_back({"", stringToColor(options->palette, "white")}); +#endif } // Escribe el texto en la textura