json: reordenades les cadenes de text

This commit is contained in:
2025-06-07 12:00:45 +02:00
parent d8ce5fb5ac
commit 1bd488e3e3
18 changed files with 355 additions and 338 deletions

View File

@@ -1,72 +1,80 @@
{ {
"INSTRUCTIONS_11": "Objectiu", "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMAT I DISSENYAT PER",
"INSTRUCTIONS_12": "HAS D'EXPLOTAR", "[CREDITS] PIXELART_DRAWN_BY": "GRAFICS DIBUIXATS PER",
"INSTRUCTIONS_13": "TANTS GLOBUS COM PUGUES", "[CREDITS] MUSIC_COMPOSED_BY": "MUSICA COMPOSADA PER",
"INSTRUCTIONS_14": "LA DIFICULTAT AUGMENTA", "[CREDITS] SOUND_EFFECTS": "EFECTES DE SO",
"INSTRUCTIONS_15": "A MESURA QUE VAS PUNTUANT",
"INSTRUCTIONS_16": "Objectes", "[DEFINE_BUTTONS] FIRE_LEFT": "Disparar cap a l'esquerra",
"INSTRUCTIONS_17": "1.000 PUNTS", "[DEFINE_BUTTONS] FIRE_UP": "Disparar cap amunt",
"INSTRUCTIONS_18": "2.500 PUNTS", "[DEFINE_BUTTONS] FIRE_RIGHT": "Disparar cap a la dreta",
"INSTRUCTIONS_19": "5.000 PUNTS", "[DEFINE_BUTTONS] START": "Start",
"INSTRUCTIONS_20": "PARA EL TEMPS", "[DEFINE_BUTTONS] SERVICE_MENU": "Menu de servei",
"INSTRUCTIONS_21": "VIDA EXTRA", "[DEFINE_BUTTONS] PLAYER": "Jugador",
"TITLE_23": "PULSA PER JUGAR", "[DEFINE_BUTTONS] KEYBOARD": "Teclat",
"INTRO_27": "Un dia qualsevol de l'any 2000",
"INTRO_28": "Tot esta tranquil a la UPV", "[GAME_TEXT] 1": "Felicitats!!",
"INTRO_29": "Fins que un desaprensiu...", "[GAME_TEXT] 2": " fases mes!",
"INTRO_30": "HEY! ME ANE A FERME UN CORTAET...", "[GAME_TEXT] 3": "Ultima fase!",
"INTRO_31": "UAAAAAAAAAAAAA!!!", "[GAME_TEXT] 4": "SuperPoder!",
"INTRO_32": "Espera un moment...", "[GAME_TEXT] 5": "+1 Colp",
"INTRO_33": "Si resulta que no tinc solt!", "[GAME_TEXT] 6": "Temps!",
"INTRO_34": "VAJA BIRRIA DE MAQUINA !!!", "[GAME_TEXT] 7": "Endavant!",
"INTRO_35": "blop... blop... blop...", "[GAME_TEXT] 8": "1.000.000 de punts!",
"GAME_TEXT_38": " fases mes!",
"HIGHSCORE_TABLE_42": "Millors puntuacions", "[HIGHSCORE_TABLE] CAPTION": "Millors puntuacions",
"GAME_COMPLETION_TEXT_50": "Felicitats!!",
"SCOREBOARD_53": "Jugador 1", "[INSTRUCTIONS] 01": "Objectiu",
"SCOREBOARD_54": "Jugador 2", "[INSTRUCTIONS] 02": "HAS D'EXPLOTAR",
"SCOREBOARD_55": "Multiplicador", "[INSTRUCTIONS] 03": "TANTS GLOBUS COM PUGUES",
"SCOREBOARD_56": "Max. puntuacio", "[INSTRUCTIONS] 04": "LA DIFICULTAT AUGMENTA",
"SCOREBOARD_57": "Fase ", "[INSTRUCTIONS] 05": "A MESURA QUE VAS PUNTUANT",
"MENU_OPTIONS_69": "Teclat", "[INSTRUCTIONS] 06": "Objectes",
"GAMEPLAY_75": "Endavant!", "[INSTRUCTIONS] 07": "1.000 PUNTS",
"GAMEPLAY_76": "1.000.000 de punts!", "[INSTRUCTIONS] 08": "2.500 PUNTS",
"GAME_TEXT_79": "Ultima fase!", "[INSTRUCTIONS] 09": "5.000 PUNTS",
"NOTIFICATIONS_94": "Torna a polsar per eixir", "[INSTRUCTIONS] 10": "PARA EL TEMPS",
"DEFINE_BUTTONS_95": "Disparar cap a l'esquerra", "[INSTRUCTIONS] 11": "VIDA EXTRA",
"DEFINE_BUTTONS_96": "Disparar cap amunt",
"DEFINE_BUTTONS_97": "Disparar cap a la dreta", "[INTRO] 1": "Un dia qualsevol de l'any 2000",
"DEFINE_BUTTONS_98": "Start", "[INTRO] 2": "Tot esta tranquil a la UPV",
"DEFINE_BUTTONS_99": "Servei", "[INTRO] 3": "Fins que un desaprensiu...",
"DEFINE_BUTTONS_100": "Jugador ", "[INTRO] 4": "HEY! ME ANE A FERME UN CORTAET...",
"SCOREBOARD_101": "Mode demostracio", "[INTRO] 5": "UAAAAAAAAAAAAA!!!",
"SCOREBOARD_102": "Game Over", "[INTRO] 6": "Espera un moment...",
"SCOREBOARD_103": "Pulsa START", "[INTRO] 7": "Si resulta que no tinc solt!",
"SCOREBOARD_104": "per jugar", "[INTRO] 8": "VAJA BIRRIA DE MAQUINA !!!",
"SCOREBOARD_105": "Continuar?", "[INTRO] 9": "blop... blop... blop...",
"SCOREBOARD_106": "Posa el nom",
"HELP_111": "Reiniciar", "[NOTIFICATIONS] 01": "Torna a polsar per eixir",
"SCOREBOARD_114": "Per favor", "[NOTIFICATIONS] 02": "Torna a polsar per apagar el sistema",
"SCOREBOARD_115": "espere", "[NOTIFICATIONS] 03": "Torna a polsar per reiniciar",
"NOTIFICATIONS_116": "Torna a polsar per apagar el sistema", "[NOTIFICATIONS] 04": "Torna a polsar per canviar el idioma a",
"GAME_TEXT_117": "SuperPoder!", "[NOTIFICATIONS] 05": "Idioma canviat a",
"GAME_TEXT_118": "+1 Colp", "[NOTIFICATIONS] 06": "activat",
"GAME_TEXT_119": "Temps!", "[NOTIFICATIONS] 07": "desactivat",
"SCOREBOARD_120": "Puntuacio", "[NOTIFICATIONS] 08": "Dispar automatic",
"CREDITS_121": "PROGRAMAT I DISSENYAT PER", "[NOTIFICATIONS] 09": "Zoom de finestra",
"CREDITS_122": "GRAFICS DIBUIXATS PER", "[NOTIFICATIONS] 10": "Mode finestra",
"CREDITS_123": "MUSICA COMPOSADA PER", "[NOTIFICATIONS] 11": "Mode pantalla completa",
"CREDITS_124": "EFECTES DE SO", "[NOTIFICATIONS] 12": "Mode d'escalat sencer",
"NOTIFICATIONS_125": "Torna a polsar per reiniciar", "[NOTIFICATIONS] 13": "Filtre",
"NOTIFICATIONS_126": "Torna a polsar per canviar el idioma a", "[NOTIFICATIONS] 14": "Sincronisme vertical",
"NOTIFICATIONS_127": "Idioma canviat a", "[NOTIFICATIONS] 15": "Reiniciar",
"MISC_128": "activat",
"MISC_129": "desactivat", "[SCOREBOARD] 1": "Jugador 1",
"MISC_130": "Dispar automatic", "[SCOREBOARD] 2": "Jugador 2",
"MISC_131": "Zoom de finestra", "[SCOREBOARD] 3": "Multiplicador",
"MISC_132": "Mode finestra", "[SCOREBOARD] 4": "Max. puntuacio",
"MISC_133": "Mode pantalla completa", "[SCOREBOARD] 5": "Fase",
"MISC_134": "Mode d'escalat sencer", "[SCOREBOARD] 6": "Mode demostracio",
"MISC_135": "Filtre", "[SCOREBOARD] 7": "Game Over",
"MISC_136": "Sincronisme vertical" "[SCOREBOARD] 8": "Pulsa START",
"[SCOREBOARD] 9": "per jugar",
"[SCOREBOARD] 10": "Continuar?",
"[SCOREBOARD] 11": "Posa el nom",
"[SCOREBOARD] 12": "Per favor",
"[SCOREBOARD] 13": "espere",
"[SCOREBOARD] 14": "Puntuacio",
"[TITLE] PRESS_BUTTON_TO_PLAY": "PULSA PER JUGAR"
} }

View File

@@ -1,72 +1,80 @@
{ {
"INSTRUCTIONS_11": "OBJECTIVE", "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMMED AND DESIGNED BY",
"INSTRUCTIONS_12": "YOU HAVE TO POP AS MANY", "[CREDITS] PIXELART_DRAWN_BY" : "PIXELART DRAWN BY",
"INSTRUCTIONS_13": "BALLOONS AS YOU CAN", "[CREDITS] MUSIC_COMPOSED_BY" : "MUSIC COMPOSED BY",
"INSTRUCTIONS_14": "DIFFICULTY WILL BE INCREASED", "[CREDITS] SOUND_EFFECTS" : "SOUND EFFECTS",
"INSTRUCTIONS_15": "AS YOU SCORE POINTS",
"INSTRUCTIONS_16": "ITEMS", "[DEFINE_BUTTONS] FIRE_LEFT" : "Fire left",
"INSTRUCTIONS_17": "1.000 POINTS", "[DEFINE_BUTTONS] FIRE_UP" : "Fire up",
"INSTRUCTIONS_18": "2.500 POINTS", "[DEFINE_BUTTONS] FIRE_RIGHT" : "Fire right",
"INSTRUCTIONS_19": "5.000 POINTS", "[DEFINE_BUTTONS] START" : "Start",
"INSTRUCTIONS_20": "TIME STOPPER", "[DEFINE_BUTTONS] SERVICE_MENU": "Service menu",
"INSTRUCTIONS_21": "EXTRA HIT", "[DEFINE_BUTTONS] PLAYER" : "Player",
"TITLE_23": "PRESS START BUTTON TO PLAY", "[DEFINE_BUTTONS] KEYBOARD" : "Keyboard",
"INTRO_27": "Any day of the year 2000",
"INTRO_28": "Everything is quiet at the UPV", "[GAME_TEXT] 1": "Congratulations!!",
"INTRO_29": "Until a bastard arrives...", "[GAME_TEXT] 2": " stages left!",
"INTRO_30": " YO! GONNA TAKE A CAFELITO... ", "[GAME_TEXT] 3": "Last stage!",
"INTRO_31": "AAAAAAAARGHHHH!!!", "[GAME_TEXT] 4": "PowerUp",
"INTRO_32": "Wait a moment...", "[GAME_TEXT] 5": "+1 Hit",
"INTRO_33": " I don't have any loose! ", "[GAME_TEXT] 6": "Stop!",
"INTRO_34": "FUCKING MACHINE!", "[GAME_TEXT] 7": "Get Ready!",
"INTRO_35": "Blop... blop... blop...", "[GAME_TEXT] 8": "1.000.000 points!",
"GAME_TEXT_38": " stages left!",
"HIGHSCORE_TABLE_42": "Best scores", "[HIGHSCORE_TABLE] CAPTION": "Best scores",
"GAME_COMPLETION_TEXT_50": "Congratulations!!",
"SCOREBOARD_53": "Player 1", "[INSTRUCTIONS] 01": "OBJECTIVE",
"SCOREBOARD_54": "Player 2", "[INSTRUCTIONS] 02": "YOU HAVE TO POP AS MANY",
"SCOREBOARD_55": "Multiplier", "[INSTRUCTIONS] 03": "BALLOONS AS YOU CAN",
"SCOREBOARD_56": "High Score", "[INSTRUCTIONS] 04": "DIFFICULTY WILL BE INCREASED",
"SCOREBOARD_57": "Stage ", "[INSTRUCTIONS] 05": "AS YOU SCORE POINTS",
"MENU_OPTIONS_69": "Keyboard", "[INSTRUCTIONS] 06": "ITEMS",
"GAMEPLAY_75": "Get Ready!", "[INSTRUCTIONS] 07": "1.000 POINTS",
"GAMEPLAY_76": "1.000.000 points!", "[INSTRUCTIONS] 08": "2.500 POINTS",
"GAME_TEXT_79": "Last stage!", "[INSTRUCTIONS] 09": "5.000 POINTS",
"NOTIFICATIONS_94": "Press again to quit", "[INSTRUCTIONS] 10": "TIME STOPPER",
"DEFINE_BUTTONS_95": "Fire left", "[INSTRUCTIONS] 11": "EXTRA HIT",
"DEFINE_BUTTONS_96": "Fire up",
"DEFINE_BUTTONS_97": "Fire right", "[INTRO] 1": "Any day of the year 2000",
"DEFINE_BUTTONS_98": "Start", "[INTRO] 2": "Everything is quiet at the UPV",
"DEFINE_BUTTONS_99": "Service", "[INTRO] 3": "Until a bastard arrives...",
"DEFINE_BUTTONS_100": "Player", "[INTRO] 4": "YO! GONNA TAKE A CAFELITO...",
"SCOREBOARD_101": "Demo mode", "[INTRO] 5": "AAAAAAAARGHHHH!!!",
"SCOREBOARD_102": "Game Over", "[INTRO] 6": "Wait a moment...",
"SCOREBOARD_103": "Press START", "[INTRO] 7": "I don't have any loose!",
"SCOREBOARD_104": "to play", "[INTRO] 8": "FUCKING MACHINE!",
"SCOREBOARD_105": "Continue?", "[INTRO] 9": "Blop... blop... blop...",
"SCOREBOARD_106": "Enter name",
"HELP_111": "Reset", "[NOTIFICATIONS] 01": "Press again to quit",
"SCOREBOARD_114": "Please", "[NOTIFICATIONS] 02": "Press again to shutdown system",
"SCOREBOARD_115": "wait", "[NOTIFICATIONS] 03": "Press again to reset",
"NOTIFICATIONS_116": "Press again to shutdown system", "[NOTIFICATIONS] 04": "Press again to change language to",
"GAME_TEXT_117": "PowerUp", "[NOTIFICATIONS] 05": "Language set to",
"GAME_TEXT_118": "+1 Hit", "[NOTIFICATIONS] 06": "on",
"GAME_TEXT_119": "Stop!", "[NOTIFICATIONS] 07": "off",
"SCOREBOARD_120": "Score", "[NOTIFICATIONS] 08": "Autofire",
"CREDITS_121": "PROGRAMMED AND DESIGNED BY", "[NOTIFICATIONS] 09": "Window zoom",
"CREDITS_122": "PIXELART DRAWN BY", "[NOTIFICATIONS] 10": "Window mode",
"CREDITS_123": "MUSIC COMPOSED BY", "[NOTIFICATIONS] 11": "Fullscreen mode",
"CREDITS_124": "SOUND EFFECTS", "[NOTIFICATIONS] 12": "Integer scale",
"NOTIFICATIONS_125": "Press again to reset", "[NOTIFICATIONS] 13": "Filter",
"NOTIFICATIONS_126": "Press again to change languaje to", "[NOTIFICATIONS] 14": "Vertical Sync",
"NOTIFICATIONS_127": "Language set to", "[NOTIFICATIONS] 15": "Reset",
"MISC_128": "on",
"MISC_129": "off", "[SCOREBOARD] 1": "Player 1",
"MISC_130": "Autofire", "[SCOREBOARD] 2": "Player 2",
"MISC_131": "Window zoom", "[SCOREBOARD] 3": "Multiplier",
"MISC_132": "Window mode", "[SCOREBOARD] 4": "High Score",
"MISC_133": "Fullscreen mode", "[SCOREBOARD] 5": "Stage",
"MISC_134": "Integer scale", "[SCOREBOARD] 6": "Demo mode",
"MISC_135": "Filter", "[SCOREBOARD] 7": "Game Over",
"MISC_136": "Vertical Sync" "[SCOREBOARD] 8": "Press START",
"[SCOREBOARD] 9": "to play",
"[SCOREBOARD] 10": "Continue?",
"[SCOREBOARD] 11": "Enter name",
"[SCOREBOARD] 12": "Please",
"[SCOREBOARD] 13": "wait",
"[SCOREBOARD] 14": "Score",
"[TITLE] PRESS_BUTTON_TO_PLAY": "PRESS START BUTTON TO PLAY"
} }

View File

@@ -1,72 +1,80 @@
{ {
"INSTRUCTIONS_11": "OBJETIVO", "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMADO Y DISEÑADO POR",
"INSTRUCTIONS_12": "TIENES QUE EXPLOTAR", "[CREDITS] PIXELART_DRAWN_BY": "GRÁFICOS DIBUJADOS POR",
"INSTRUCTIONS_13": "TANTOS GLOBOS COMO PUEDAS", "[CREDITS] MUSIC_COMPOSED_BY": "MÚSICA COMPUESTA POR",
"INSTRUCTIONS_14": "LA DIFICULTAD SE INCREMENTA", "[CREDITS] SOUND_EFFECTS": "EFECTOS DE SONIDO",
"INSTRUCTIONS_15": "A MEDIDA QUE VAS PUNTUANDO",
"INSTRUCTIONS_16": "OBJETOS", "[DEFINE_BUTTONS] FIRE_LEFT": "Disparar a la izquierda",
"INSTRUCTIONS_17": "1.000 PUNTOS", "[DEFINE_BUTTONS] FIRE_UP": "Disparar hacia arriba",
"INSTRUCTIONS_18": "2.500 PUNTOS", "[DEFINE_BUTTONS] FIRE_RIGHT": "Disparar hacia la derecha",
"INSTRUCTIONS_19": "5.000 PUNTOS", "[DEFINE_BUTTONS] START": "Start",
"INSTRUCTIONS_20": "DETIENE EL TIEMPO", "[DEFINE_BUTTONS] SERVICE_MENU": "Menu de servicio",
"INSTRUCTIONS_21": "VIDA EXTRA", "[DEFINE_BUTTONS] PLAYER": "Jugador",
"TITLE_23": "PULSA UN BOTON PARA JUGAR", "[DEFINE_BUTTONS] KEYBOARD": "Teclado",
"INTRO_27": "Un dia cualquiera del a{o 2000",
"INTRO_28": "Todo esta tranquilo en la UPV", "[GAME_TEXT] 1": "Felicidades!!",
"INTRO_29": "Hasta que un desaprensivo...", "[GAME_TEXT] 2": " fases más!",
"INTRO_30": "HEY! VOY A SACARME UN TALLADET...", "[GAME_TEXT] 3": "Última fase!",
"INTRO_31": "UAAAAAAAAAAAAA!!!", "[GAME_TEXT] 4": "Potenciador",
"INTRO_32": "Espera un momento...", "[GAME_TEXT] 5": "+1 Golpe",
"INTRO_33": "Si no llevo suelto encima!", "[GAME_TEXT] 6": "Tiempo!",
"INTRO_34": "MIERDA DE MAQUINA!", "[GAME_TEXT] 7": "Adelante!",
"INTRO_35": "Blop... blop... blop...", "[GAME_TEXT] 8": "1.000.000 de puntos!",
"GAME_TEXT_38": " fases mas!",
"HIGHSCORE_TABLE_42": "Mejores puntuaciones", "[HIGHSCORE_TABLE] CAPTION": "Mejores puntuaciones",
"GAME_COMPLETION_TEXT_50": "Felicidades!!",
"SCOREBOARD_53": "Jugador 1", "[INSTRUCTIONS] 01": "OBJETIVO",
"SCOREBOARD_54": "Jugador 2", "[INSTRUCTIONS] 02": "TIENES QUE EXPLOTAR",
"SCOREBOARD_55": "Multiplicador", "[INSTRUCTIONS] 03": "TANTOS GLOBOS COMO PUEDAS",
"SCOREBOARD_56": "Max. puntuacion", "[INSTRUCTIONS] 04": "LA DIFICULTAD SE INCREMENTA",
"SCOREBOARD_57": "Fase ", "[INSTRUCTIONS] 05": "A MEDIDA QUE VAS PUNTUANDO",
"MENU_OPTIONS_69": "Teclado", "[INSTRUCTIONS] 06": "OBJETOS",
"GAMEPLAY_75": "Adelante!", "[INSTRUCTIONS] 07": "1.000 PUNTOS",
"GAMEPLAY_76": "1.000.000 de puntos!", "[INSTRUCTIONS] 08": "2.500 PUNTOS",
"GAME_TEXT_79": "Ultima fase!", "[INSTRUCTIONS] 09": "5.000 PUNTOS",
"NOTIFICATIONS_94": "Pulsa otra vez para salir", "[INSTRUCTIONS] 10": "DETIENE EL TIEMPO",
"DEFINE_BUTTONS_95": "Disparar a la izquierda", "[INSTRUCTIONS] 11": "VIDA EXTRA",
"DEFINE_BUTTONS_96": "Disparar hacia arriba",
"DEFINE_BUTTONS_97": "Disparar hacia la derecha", "[INTRO] 1": "Un día cualquiera del año 2000",
"DEFINE_BUTTONS_98": "Start", "[INTRO] 2": "Todo está tranquilo en la UPV",
"DEFINE_BUTTONS_99": "Servicio", "[INTRO] 3": "Hasta que un desaprensivo...",
"DEFINE_BUTTONS_100": "Jugador ", "[INTRO] 4": "HEY! VOY A SACARME UN TALLADET...",
"SCOREBOARD_101": "Mode demostracion", "[INTRO] 5": "UAAAAAAAAAAAAA!!!",
"SCOREBOARD_102": "Game Over", "[INTRO] 6": "Espera un momento...",
"SCOREBOARD_103": "Pulsa START", "[INTRO] 7": "Si no llevo suelto encima!",
"SCOREBOARD_104": "para jugar", "[INTRO] 8": "MIERDA DE MÁQUINA!",
"SCOREBOARD_105": "Continuar?", "[INTRO] 9": "Blop... blop... blop...",
"SCOREBOARD_106": "Pon tu nombre",
"HELP_111": "Reiniciar", "[NOTIFICATIONS] 01": "Pulsa otra vez para salir",
"SCOREBOARD_114": "Por favor", "[NOTIFICATIONS] 02": "Pulsa otra vez para apagar el sistema",
"SCOREBOARD_115": "espere", "[NOTIFICATIONS] 03": "Vuelve a pulsar para reiniciar",
"NOTIFICATIONS_116": "Pulsa otra vez para apagar el sistema", "[NOTIFICATIONS] 04": "Vuelve a pulsar para cambiar el idioma a",
"GAME_TEXT_117": "Potenciador", "[NOTIFICATIONS] 05": "Idioma cambiado a",
"GAME_TEXT_118": "+1 Golpe", "[NOTIFICATIONS] 06": "activado",
"GAME_TEXT_119": "Tiempo!", "[NOTIFICATIONS] 07": "desactivado",
"SCOREBOARD_120": "Puntuacion", "[NOTIFICATIONS] 08": "Disparo automático",
"CREDITS_121": "PROGRAMADO Y DISE{ADO POR", "[NOTIFICATIONS] 09": "Zoom de ventana",
"CREDITS_122": "GRAFICOS DIBUJADOS POR", "[NOTIFICATIONS] 10": "Modo ventana",
"CREDITS_123": "MUSICA COMPUESTA POR", "[NOTIFICATIONS] 11": "Modo pantalla completa",
"CREDITS_124": "EFECTOS DE SONIDO", "[NOTIFICATIONS] 12": "Modo de escalado entero",
"NOTIFICATIONS_125": "Vuelve a pulsar para reiniciar", "[NOTIFICATIONS] 13": "Filtro",
"NOTIFICATIONS_126": "Vuelve a pulsar para cambiar el idioma a", "[NOTIFICATIONS] 14": "Sincronismo vertical",
"NOTIFICATIONS_127": "Idioma cambiado a", "[NOTIFICATIONS] 15": "Reiniciar",
"MISC_128": "activado",
"MISC_129": "desactivado", "[SCOREBOARD] 1": "Jugador 1",
"MISC_130": "Disparo automático", "[SCOREBOARD] 2": "Jugador 2",
"MISC_131": "Zoom de ventana", "[SCOREBOARD] 3": "Multiplicador",
"MISC_132": "Modo ventana", "[SCOREBOARD] 4": "Max. puntuación",
"MISC_133": "Modo pantalla completa", "[SCOREBOARD] 5": "Fase",
"MISC_134": "Modo de escalado entero", "[SCOREBOARD] 6": "Modo demostración",
"MISC_135": "Filtro", "[SCOREBOARD] 7": "Game Over",
"MISC_136": "Sincronismo vertical" "[SCOREBOARD] 8": "Pulsa START",
"[SCOREBOARD] 9": "para jugar",
"[SCOREBOARD] 10": "Continuar?",
"[SCOREBOARD] 11": "Pon tu nombre",
"[SCOREBOARD] 12": "Por favor",
"[SCOREBOARD] 13": "espere",
"[SCOREBOARD] 14": "Puntuación",
"[TITLE] PRESS_BUTTON_TO_PLAY": "PULSA UN BOTÓN PARA JUGAR"
} }

View File

@@ -142,7 +142,7 @@ void Credits::checkEvents()
void Credits::checkInput() void Credits::checkInput()
{ {
if (!ServiceMenu::get()->isEnabled()) if (!ServiceMenu::get()->isEnabled())
{ {
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar) // Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
if (Input::get()->checkAnyButtonPressed(INPUT_ALLOW_REPEAT)) if (Input::get()->checkAnyButtonPressed(INPUT_ALLOW_REPEAT))
{ {
@@ -169,10 +169,10 @@ void Credits::fillTextTexture()
SDL_RenderClear(Screen::get()->getRenderer()); SDL_RenderClear(Screen::get()->getRenderer());
const std::array<std::string, 10> TEXTS = { const std::array<std::string, 10> TEXTS = {
lang::getText("CREDITS_121"), lang::getText("[CREDITS] PROGRAMMED_AND_DESIGNED_BY"),
lang::getText("CREDITS_122"), lang::getText("[CREDITS] PIXELART_DRAWN_BY"),
lang::getText("CREDITS_123"), lang::getText("[CREDITS] MUSIC_COMPOSED_BY"),
lang::getText("CREDITS_124"), lang::getText("[CREDITS] SOUND_EFFECTS"),
"JAILDESIGNER", "JAILDESIGNER",
"JAILDOCTOR (INTRO)", "JAILDOCTOR (INTRO)",
"ERIC MATYAS (SOUNDIMAGE.ORG)", "ERIC MATYAS (SOUNDIMAGE.ORG)",

View File

@@ -28,7 +28,7 @@ void DefineButtons::render()
{ {
if (enabled_) if (enabled_)
{ {
text_->writeCentered(x_, y_ - 10, lang::getText("DEFINE_BUTTONS_100") + std::to_string(options.controllers.at(index_controller_).player_id)); text_->writeCentered(x_, y_ - 10, lang::getText("[DEFINE_BUTTONS] PLAYER") + std::to_string(options.controllers.at(index_controller_).player_id));
text_->writeCentered(x_, y_, controller_names_.at(index_controller_)); text_->writeCentered(x_, y_, controller_names_.at(index_controller_));
text_->writeCentered(x_, y_ + 10, buttons_.at(index_button_).label); text_->writeCentered(x_, y_ + 10, buttons_.at(index_button_).label);
} }
@@ -135,9 +135,9 @@ bool DefineButtons::checkButtonNotInUse(SDL_GamepadButton button)
void DefineButtons::clearButtons() void DefineButtons::clearButtons()
{ {
buttons_.clear(); buttons_.clear();
buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_95"), InputAction::FIRE_LEFT, SDL_GAMEPAD_BUTTON_INVALID); buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] FIRE_LEFT"), InputAction::FIRE_LEFT, SDL_GAMEPAD_BUTTON_INVALID);
buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_96"), InputAction::FIRE_CENTER, SDL_GAMEPAD_BUTTON_INVALID); buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] FIRE_UP"), InputAction::FIRE_CENTER, SDL_GAMEPAD_BUTTON_INVALID);
buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_97"), InputAction::FIRE_RIGHT, SDL_GAMEPAD_BUTTON_INVALID); buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] FIRE_RIGHT"), InputAction::FIRE_RIGHT, SDL_GAMEPAD_BUTTON_INVALID);
buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_98"), InputAction::START, SDL_GAMEPAD_BUTTON_INVALID); buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] START"), InputAction::START, SDL_GAMEPAD_BUTTON_INVALID);
buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_99"), InputAction::SERVICE, SDL_GAMEPAD_BUTTON_INVALID); buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] SERVICE_MENU"), InputAction::SERVICE, SDL_GAMEPAD_BUTTON_INVALID);
} }

View File

@@ -276,7 +276,7 @@ void Game::updateStage()
else else
{ {
auto text = Resource::get()->getText("04b_25_2x"); auto text = Resource::get()->getText("04b_25_2x");
const std::string caption = std::to_string(10 - Stage::number) + lang::getText("GAME_TEXT_38"); const std::string caption = std::to_string(10 - Stage::number) + lang::getText("[GAME_TEXT] 2");
createMessage(paths, text->writeToTexture(caption, 1, -4)); createMessage(paths, text->writeToTexture(caption, 1, -4));
} }
} }
@@ -1645,8 +1645,8 @@ void Game::initDemo(int player_id)
Audio::get()->disableSound(); Audio::get()->disableSound();
// Configura los marcadores // Configura los marcadores
scoreboard_->setMode(SCOREBOARD_LEFT_PANEL, ScoreboardMode::DEMO); scoreboard_->setMode([SCOREBOARD] LEFT_PANEL, ScoreboardMode::DEMO);
scoreboard_->setMode(SCOREBOARD_RIGHT_PANEL, ScoreboardMode::DEMO); scoreboard_->setMode([SCOREBOARD] RIGHT_PANEL, ScoreboardMode::DEMO);
} }
// Modo grabar demo // Modo grabar demo
@@ -1672,7 +1672,7 @@ void Game::setTotalPower()
void Game::initScoreboard() void Game::initScoreboard()
{ {
scoreboard_->setPos({param.scoreboard.x, param.scoreboard.y, param.scoreboard.w, param.scoreboard.h}); scoreboard_->setPos({param.scoreboard.x, param.scoreboard.y, param.scoreboard.w, param.scoreboard.h});
scoreboard_->setMode(SCOREBOARD_CENTER_PANEL, ScoreboardMode::STAGE_INFO); scoreboard_->setMode([SCOREBOARD] CENTER_PANEL, ScoreboardMode::STAGE_INFO);
for (const auto &player : players_) for (const auto &player : players_)
{ {
scoreboard_->setName(player->getScoreBoardPanel(), player->getName()); scoreboard_->setName(player->getScoreBoardPanel(), player->getName());
@@ -1693,7 +1693,7 @@ void Game::initDifficultyVars()
{ {
balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]); balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]);
difficulty_score_multiplier_ = 0.5f; difficulty_score_multiplier_ = 0.5f;
scoreboard_->setColor(SCOREBOARD_EASY_COLOR); scoreboard_->setColor([SCOREBOARD] EASY_COLOR);
break; break;
} }
@@ -1701,7 +1701,7 @@ void Game::initDifficultyVars()
{ {
balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]); balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]);
difficulty_score_multiplier_ = 1.0f; difficulty_score_multiplier_ = 1.0f;
scoreboard_->setColor(SCOREBOARD_NORMAL_COLOR); scoreboard_->setColor([SCOREBOARD] NORMAL_COLOR);
break; break;
} }
@@ -1709,7 +1709,7 @@ void Game::initDifficultyVars()
{ {
balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[4]); balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[4]);
difficulty_score_multiplier_ = 1.5f; difficulty_score_multiplier_ = 1.5f;
scoreboard_->setColor(SCOREBOARD_HARD_COLOR); scoreboard_->setColor([SCOREBOARD] HARD_COLOR);
break; break;
} }
@@ -1726,13 +1726,13 @@ void Game::initPlayers(int player_id)
// Crea los dos jugadores // Crea los dos jugadores
const int y = param.game.play_area.rect.h - 30; const int y = param.game.play_area.rect.h - 30;
players_.emplace_back(std::make_unique<Player>(1, param.game.play_area.first_quarter_x - 15, y, demo_.enabled, param.game.play_area.rect, player_textures_[0], player_animations_)); players_.emplace_back(std::make_unique<Player>(1, param.game.play_area.first_quarter_x - 15, y, demo_.enabled, param.game.play_area.rect, player_textures_[0], player_animations_));
players_.back()->setScoreBoardPanel(SCOREBOARD_LEFT_PANEL); players_.back()->setScoreBoardPanel([SCOREBOARD] LEFT_PANEL);
players_.back()->setName(lang::getText("SCOREBOARD_53")); players_.back()->setName(lang::getText("[SCOREBOARD] 1"));
players_.back()->setController(getController(players_.back()->getId())); players_.back()->setController(getController(players_.back()->getId()));
players_.emplace_back(std::make_unique<Player>(2, param.game.play_area.third_quarter_x - 15, y, demo_.enabled, param.game.play_area.rect, player_textures_[1], player_animations_)); players_.emplace_back(std::make_unique<Player>(2, param.game.play_area.third_quarter_x - 15, y, demo_.enabled, param.game.play_area.rect, player_textures_[1], player_animations_));
players_.back()->setScoreBoardPanel(SCOREBOARD_RIGHT_PANEL); players_.back()->setScoreBoardPanel([SCOREBOARD] RIGHT_PANEL);
players_.back()->setName(lang::getText("SCOREBOARD_54")); players_.back()->setName(lang::getText("[SCOREBOARD] 2"));
players_.back()->setController(getController(players_.back()->getId())); players_.back()->setController(getController(players_.back()->getId()));
// Activa el jugador que coincide con el "player_id" // Activa el jugador que coincide con el "player_id"

View File

@@ -30,10 +30,10 @@ namespace globalInputs
{ {
// Si la notificación de salir no está activa, muestra la notificación // Si la notificación de salir no está activa, muestra la notificación
#ifdef ARCADE #ifdef ARCADE
const std::string TEXT = code == section::Options::QUIT_WITH_CONTROLLER ? lang::getText("NOTIFICATIONS_116") : lang::getText("NOTIFICATIONS_94"); const std::string TEXT = code == section::Options::QUIT_WITH_CONTROLLER ? lang::getText("[NOTIFICATIONS] 02") : lang::getText("[NOTIFICATIONS] 01");
Notifier::get()->show({TEXT, std::string()}, -1, CODE); Notifier::get()->show({TEXT, std::string()}, -1, CODE);
#else #else
Notifier::get()->show({lang::getText("NOTIFICATIONS_94"), std::string()}, -1, CODE); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 01"), std::string()}, -1, CODE);
#endif #endif
} }
} }
@@ -45,11 +45,11 @@ namespace globalInputs
if (Notifier::get()->checkCode(CODE)) if (Notifier::get()->checkCode(CODE))
{ {
section::name = section::Name::INIT; section::name = section::Name::INIT;
Notifier::get()->show({lang::getText("HELP_111")}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 15")});
} }
else else
{ {
Notifier::get()->show({lang::getText("NOTIFICATIONS_125"), std::string()}, -1, CODE); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 03"), std::string()}, -1, CODE);
} }
} }
@@ -65,21 +65,21 @@ namespace globalInputs
void toggleIntegerScale() void toggleIntegerScale()
{ {
Screen::get()->toggleIntegerScale(); Screen::get()->toggleIntegerScale();
Notifier::get()->show({lang::getText("MISC_134") + " " + boolToOnOff(options.video.integer_scale)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 12") + " " + boolToOnOff(options.video.integer_scale)});
} }
// Activa / desactiva el vsync // Activa / desactiva el vsync
void toggleVSync() void toggleVSync()
{ {
Screen::get()->toggleVSync(); Screen::get()->toggleVSync();
Notifier::get()->show({lang::getText("MISC_136") + " " + boolToOnOff(options.video.v_sync)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 14") + " " + boolToOnOff(options.video.v_sync)});
} }
// Activa o desactiva los shaders // Activa o desactiva los shaders
void toggleShaders() void toggleShaders()
{ {
Screen::get()->toggleShaders(); Screen::get()->toggleShaders();
Notifier::get()->show({lang::getText("MISC_135") + " " + boolToOnOff(options.video.shaders)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 13") + " " + boolToOnOff(options.video.shaders)});
} }
// Obtiene una fichero a partir de un lang::Code // Obtiene una fichero a partir de un lang::Code
@@ -126,12 +126,12 @@ namespace globalInputs
lang::loadFromFile(getLangFile(static_cast<lang::Code>(options.game.language))); lang::loadFromFile(getLangFile(static_cast<lang::Code>(options.game.language)));
section::name = section::Name::INIT; section::name = section::Name::INIT;
section::options = section::Options::RELOAD; section::options = section::Options::RELOAD;
Notifier::get()->show({lang::getText("NOTIFICATIONS_127") + getLangName(options.game.language)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 05") + getLangName(options.game.language)});
} }
else else
{ {
const auto NEXT = lang::getNextLangCode(options.game.language); const auto NEXT = lang::getNextLangCode(options.game.language);
Notifier::get()->show({lang::getText("NOTIFICATIONS_126") + getLangName(NEXT), std::string()}, -1, CODE); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 04") + getLangName(NEXT), std::string()}, -1, CODE);
} }
} }
@@ -139,7 +139,7 @@ namespace globalInputs
void toggleFireMode() void toggleFireMode()
{ {
options.game.autofire = !options.game.autofire; options.game.autofire = !options.game.autofire;
Notifier::get()->show({lang::getText("MISC_130") + " " + boolToOnOff(options.game.autofire)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 08") + " " + boolToOnOff(options.game.autofire)});
} }
// Salta una sección del juego // Salta una sección del juego
@@ -155,7 +155,7 @@ namespace globalInputs
case section::Name::INSTRUCTIONS: case section::Name::INSTRUCTIONS:
{ {
section::name = section::Name::TITLE; section::name = section::Name::TITLE;
section::options = section::Options::TITLE_1; section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY;
section::attract_mode = section::AttractMode::TITLE_TO_DEMO; section::attract_mode = section::AttractMode::TITLE_TO_DEMO;
break; break;
} }
@@ -271,7 +271,7 @@ namespace globalInputs
if (Input::get()->checkInput(InputAction::WINDOW_FULLSCREEN, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD)) if (Input::get()->checkInput(InputAction::WINDOW_FULLSCREEN, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
{ {
Screen::get()->toggleFullscreen(); Screen::get()->toggleFullscreen();
const std::string MODE = options.video.fullscreen ? lang::getText("MISC_133") : lang::getText("MISC_132"); const std::string MODE = options.video.fullscreen ? lang::getText("[NOTIFICATIONS] 11") : lang::getText("[NOTIFICATIONS] 10");
Notifier::get()->show({MODE}); Notifier::get()->show({MODE});
return; return;
} }
@@ -281,7 +281,7 @@ namespace globalInputs
{ {
if (Screen::get()->decWindowZoom()) if (Screen::get()->decWindowZoom())
{ {
Notifier::get()->show({lang::getText("MISC_131") + " x" + std::to_string(options.window.size)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 09") + " x" + std::to_string(options.window.size)});
} }
return; return;
} }
@@ -291,7 +291,7 @@ namespace globalInputs
{ {
if (Screen::get()->incWindowZoom()) if (Screen::get()->incWindowZoom())
{ {
Notifier::get()->show({lang::getText("MISC_131") + " x" + std::to_string(options.window.size)}); Notifier::get()->show({lang::getText("[NOTIFICATIONS] 09") + " x" + std::to_string(options.window.size)});
} }
return; return;
} }

View File

@@ -221,7 +221,7 @@ void HiScoreTable::createSprites()
const int first_line = (param.game.height - size) / 2; const int first_line = (param.game.height - size) / 2;
// Crea el sprite para el texto de cabecera // Crea el sprite para el texto de cabecera
header_ = std::make_unique<Sprite>(header_text->writeDXToTexture(TEXT_COLOR, lang::getText("HIGHSCORE_TABLE_42"), -2, background_fade_color_.getInverse().lighten(25))); header_ = std::make_unique<Sprite>(header_text->writeDXToTexture(TEXT_COLOR, lang::getText("[HIGHSCORE_TABLE] CAPTION"), -2, background_fade_color_.getInverse().lighten(25)));
header_->setPosition(param.game.game_area.center_x - (header_->getWidth() / 2), first_line); header_->setPosition(param.game.game_area.center_x - (header_->getWidth() / 2), first_line);
// Crea los sprites para las entradas en la tabla de puntuaciones // Crea los sprites para las entradas en la tabla de puntuaciones

View File

@@ -141,11 +141,11 @@ void Instructions::fillTexture()
// Calcula cual es el texto más largo de las descripciones de los items // Calcula cual es el texto más largo de las descripciones de los items
int lenght = 0; int lenght = 0;
const std::array<std::string, 5> ITEM_DESCRIPTIONS = { const std::array<std::string, 5> ITEM_DESCRIPTIONS = {
lang::getText("INSTRUCTIONS_17"), lang::getText("[INSTRUCTIONS] 07"),
lang::getText("INSTRUCTIONS_18"), lang::getText("[INSTRUCTIONS] 08"),
lang::getText("INSTRUCTIONS_19"), lang::getText("[INSTRUCTIONS] 09"),
lang::getText("INSTRUCTIONS_20"), lang::getText("[INSTRUCTIONS] 10"),
lang::getText("INSTRUCTIONS_21")}; lang::getText("[INSTRUCTIONS] 11")};
for (const auto &desc : ITEM_DESCRIPTIONS) for (const auto &desc : ITEM_DESCRIPTIONS)
{ {
const int l = text_->lenght(desc); const int l = text_->lenght(desc);
@@ -154,24 +154,24 @@ void Instructions::fillTexture()
const int ANCHOR_ITEM = (param.game.width - (lenght + desp_x)) / 2; const int ANCHOR_ITEM = (param.game.width - (lenght + desp_x)) / 2;
// Escribe el texto de las instrucciones // Escribe el texto de las instrucciones
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, first_line, lang::getText("INSTRUCTIONS_11"), 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, first_line, lang::getText("[INSTRUCTIONS] 01"), 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR);
const int anchor1 = first_line + space_post_header; const int anchor1 = first_line + space_post_header;
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_between_lines * 0, lang::getText("INSTRUCTIONS_12"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_between_lines * 0, lang::getText("[INSTRUCTIONS] 02"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR);
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_between_lines * 1, lang::getText("INSTRUCTIONS_13"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_between_lines * 1, lang::getText("[INSTRUCTIONS] 03"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR);
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_new_paragraph + space_between_lines * 2, lang::getText("INSTRUCTIONS_14"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_new_paragraph + space_between_lines * 2, lang::getText("[INSTRUCTIONS] 04"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR);
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_new_paragraph + space_between_lines * 3, lang::getText("INSTRUCTIONS_15"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor1 + space_new_paragraph + space_between_lines * 3, lang::getText("[INSTRUCTIONS] 05"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR);
// Escribe el texto de los objetos y sus puntos // Escribe el texto de los objetos y sus puntos
const int anchor2 = anchor1 + space_pre_header + space_new_paragraph + space_between_lines * 3; const int anchor2 = anchor1 + space_pre_header + space_new_paragraph + space_between_lines * 3;
text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor2, lang::getText("INSTRUCTIONS_16"), 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR); text_->writeDX(TEXT_CENTER | TEXT_COLOR | TEXT_SHADOW, param.game.game_area.center_x, anchor2, lang::getText("[INSTRUCTIONS] 06"), 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR);
const int anchor3 = anchor2 + space_post_header; const int anchor3 = anchor2 + space_post_header;
text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 0, lang::getText("INSTRUCTIONS_17"), SHADOW_TEXT_COLOR); text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 0, lang::getText("[INSTRUCTIONS] 07"), SHADOW_TEXT_COLOR);
text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 1, lang::getText("INSTRUCTIONS_18"), SHADOW_TEXT_COLOR); text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 1, lang::getText("[INSTRUCTIONS] 08"), SHADOW_TEXT_COLOR);
text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 2, lang::getText("INSTRUCTIONS_19"), SHADOW_TEXT_COLOR); text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 2, lang::getText("[INSTRUCTIONS] 09"), SHADOW_TEXT_COLOR);
text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 3, lang::getText("INSTRUCTIONS_20"), SHADOW_TEXT_COLOR); text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 3, lang::getText("[INSTRUCTIONS] 10"), SHADOW_TEXT_COLOR);
text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 4, lang::getText("INSTRUCTIONS_21"), SHADOW_TEXT_COLOR); text_->writeShadowed(ANCHOR_ITEM + desp_x, anchor3 + space_between_item_lines * 4, lang::getText("[INSTRUCTIONS] 11"), SHADOW_TEXT_COLOR);
// Deja el renderizador como estaba // Deja el renderizador como estaba
SDL_SetRenderTarget(renderer_, temp); SDL_SetRenderTarget(renderer_, temp);
@@ -369,6 +369,6 @@ void Instructions::updateBackbuffer()
if (all_lines_off_screen_) if (all_lines_off_screen_)
{ {
section::name = section::Name::TITLE; section::name = section::Name::TITLE;
section::options = section::Options::TITLE_1; section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY;
} }
} }

View File

@@ -396,39 +396,39 @@ void Intro::initTexts()
} }
// Un dia qualsevol de l'any 2000 // Un dia qualsevol de l'any 2000
texts_.at(0)->setCaption(lang::getText("INTRO_27")); texts_.at(0)->setCaption(lang::getText("[INTRO] 1"));
texts_.at(0)->setSpeed(8); texts_.at(0)->setSpeed(8);
// Tot esta tranquil a la UPV // Tot esta tranquil a la UPV
texts_.at(1)->setCaption(lang::getText("INTRO_28")); texts_.at(1)->setCaption(lang::getText("[INTRO] 2"));
texts_.at(1)->setSpeed(8); texts_.at(1)->setSpeed(8);
// Fins que un desaprensiu... // Fins que un desaprensiu...
texts_.at(2)->setCaption(lang::getText("INTRO_29")); texts_.at(2)->setCaption(lang::getText("[INTRO] 3"));
texts_.at(2)->setSpeed(12); texts_.at(2)->setSpeed(12);
// HEY! ME ANE A FERME UN CORTAET... // HEY! ME ANE A FERME UN CORTAET...
texts_.at(3)->setCaption(lang::getText("INTRO_30")); texts_.at(3)->setCaption(lang::getText("[INTRO] 4"));
texts_.at(3)->setSpeed(8); texts_.at(3)->setSpeed(8);
// UAAAAAAAAAAAAA!!! // UAAAAAAAAAAAAA!!!
texts_.at(4)->setCaption(lang::getText("INTRO_31")); texts_.at(4)->setCaption(lang::getText("[INTRO] 5"));
texts_.at(4)->setSpeed(1); texts_.at(4)->setSpeed(1);
// Espera un moment... // Espera un moment...
texts_.at(5)->setCaption(lang::getText("INTRO_32")); texts_.at(5)->setCaption(lang::getText("[INTRO] 6"));
texts_.at(5)->setSpeed(16); texts_.at(5)->setSpeed(16);
// Si resulta que no tinc solt! // Si resulta que no tinc solt!
texts_.at(6)->setCaption(lang::getText("INTRO_33")); texts_.at(6)->setCaption(lang::getText("[INTRO] 7"));
texts_.at(6)->setSpeed(2); texts_.at(6)->setSpeed(2);
// MERDA DE MAQUINA! // MERDA DE MAQUINA!
texts_.at(7)->setCaption(lang::getText("INTRO_34")); texts_.at(7)->setCaption(lang::getText("[INTRO] 8"));
texts_.at(7)->setSpeed(3); texts_.at(7)->setSpeed(3);
// Blop... blop... blop... // Blop... blop... blop...
texts_.at(8)->setCaption(lang::getText("INTRO_35")); texts_.at(8)->setCaption(lang::getText("[INTRO] 9"));
texts_.at(8)->setSpeed(20); texts_.at(8)->setSpeed(20);
for (auto &text : texts_) for (auto &text : texts_)
@@ -515,7 +515,7 @@ void Intro::updatePostState()
{ {
Audio::get()->stopMusic(); Audio::get()->stopMusic();
section::name = section::Name::TITLE; section::name = section::Name::TITLE;
section::options = section::Options::TITLE_1; section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY;
} }
break; break;

View File

@@ -282,10 +282,10 @@ void Resource::createTextures()
{"game_text_1000_points", "1.000"}, {"game_text_1000_points", "1.000"},
{"game_text_2500_points", "2.500"}, {"game_text_2500_points", "2.500"},
{"game_text_5000_points", "5.000"}, {"game_text_5000_points", "5.000"},
{"game_text_powerup", lang::getText("GAME_TEXT_117")}, {"game_text_powerup", lang::getText("[GAME_TEXT] 4")},
{"game_text_one_hit", lang::getText("GAME_TEXT_118")}, {"game_text_one_hit", lang::getText("[GAME_TEXT] 5")},
{"game_text_stop", lang::getText("GAME_TEXT_119")}, {"game_text_stop", lang::getText("[GAME_TEXT] 6")},
{"game_text_1000000_points", lang::getText("GAMEPLAY_76")}}; {"game_text_1000000_points", lang::getText("[GAME_TEXT] 8")}};
auto text = getText("04b_25"); auto text = getText("04b_25");
for (const auto &s : strings) for (const auto &s : strings)
@@ -297,9 +297,9 @@ void Resource::createTextures()
// Tamaño doble // Tamaño doble
std::vector<NameAndText> strings2X = { std::vector<NameAndText> strings2X = {
{"game_text_100000_points", "100.000"}, {"game_text_100000_points", "100.000"},
{"game_text_get_ready", lang::getText("GAMEPLAY_75")}, {"game_text_get_ready", lang::getText("[GAME_TEXT] 7")},
{"game_text_last_stage", lang::getText("GAME_TEXT_79")}, {"game_text_last_stage", lang::getText("[GAME_TEXT] 3")},
{"game_text_congratulations", lang::getText("GAME_COMPLETION_TEXT_50")}, {"game_text_congratulations", lang::getText("[GAME_TEXT] 1")},
{"game_text_game_over", "Game Over"}}; {"game_text_game_over", "Game Over"}};
auto text2 = getText("04b_25_2x"); auto text2 = getText("04b_25_2x");

View File

@@ -41,7 +41,7 @@ Scoreboard::Scoreboard()
text_scoreboard_(Resource::get()->getText("8bithud")) text_scoreboard_(Resource::get()->getText("8bithud"))
{ {
// Inicializa variables // Inicializa variables
for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i)
{ {
name_[i].clear(); name_[i].clear();
record_name_[i].clear(); record_name_[i].clear();
@@ -51,9 +51,9 @@ Scoreboard::Scoreboard()
continue_counter_[i] = 0; continue_counter_[i] = 0;
} }
panel_[SCOREBOARD_LEFT_PANEL].mode = ScoreboardMode::SCORE; panel_[[SCOREBOARD] LEFT_PANEL].mode = ScoreboardMode::SCORE;
panel_[SCOREBOARD_RIGHT_PANEL].mode = ScoreboardMode::SCORE; panel_[[SCOREBOARD] RIGHT_PANEL].mode = ScoreboardMode::SCORE;
panel_[SCOREBOARD_CENTER_PANEL].mode = ScoreboardMode::STAGE_INFO; panel_[[SCOREBOARD] CENTER_PANEL].mode = ScoreboardMode::STAGE_INFO;
// Recalcula las anclas de los elementos // Recalcula las anclas de los elementos
recalculateAnchors(); recalculateAnchors();
@@ -159,7 +159,7 @@ void Scoreboard::fillPanelTextures()
auto temp = SDL_GetRenderTarget(renderer_); auto temp = SDL_GetRenderTarget(renderer_);
// Genera el contenido de cada panel_ // Genera el contenido de cada panel_
for (size_t i = 0; i < SCOREBOARD_MAX_PANELS; ++i) for (size_t i = 0; i < [SCOREBOARD] MAX_PANELS; ++i)
{ {
// Cambia el destino del renderizador // Cambia el destino del renderizador
SDL_SetRenderTarget(renderer_, panel_texture_[i]); SDL_SetRenderTarget(renderer_, panel_texture_[i]);
@@ -177,7 +177,7 @@ void Scoreboard::fillPanelTextures()
text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i])); text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i]));
// MULT // MULT
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("SCOREBOARD_55")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("[SCOREBOARD] 3"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, "x" + std::to_string(mult_[i]).substr(0, 3)); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, "x" + std::to_string(mult_[i]).substr(0, 3));
break; break;
} }
@@ -185,13 +185,13 @@ void Scoreboard::fillPanelTextures()
case ScoreboardMode::DEMO: case ScoreboardMode::DEMO:
{ {
// DEMO MODE // DEMO MODE
text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("SCOREBOARD_101")); text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("[SCOREBOARD] 6"));
// PRESS START TO PLAY // PRESS START TO PLAY
if (time_counter_ % 10 < 8) if (time_counter_ % 10 < 8)
{ {
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_103")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("[SCOREBOARD] 8"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_104")); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("[SCOREBOARD] 9"));
} }
break; break;
} }
@@ -199,13 +199,13 @@ void Scoreboard::fillPanelTextures()
case ScoreboardMode::WAITING: case ScoreboardMode::WAITING:
{ {
// GAME OVER // GAME OVER
text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("SCOREBOARD_102")); text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("[SCOREBOARD] 7"));
// PRESS START TO PLAY // PRESS START TO PLAY
if (time_counter_ % 10 < 8) if (time_counter_ % 10 < 8)
{ {
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_103")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("[SCOREBOARD] 8"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_104")); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("[SCOREBOARD] 9"));
} }
break; break;
} }
@@ -213,13 +213,13 @@ void Scoreboard::fillPanelTextures()
case ScoreboardMode::GAME_OVER: case ScoreboardMode::GAME_OVER:
{ {
// GAME OVER // GAME OVER
text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("SCOREBOARD_102")); text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("[SCOREBOARD] 7"));
// PLEASE WAIT // PLEASE WAIT
if (time_counter_ % 10 < 8) if (time_counter_ % 10 < 8)
{ {
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_114")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("[SCOREBOARD] 12"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_115")); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("[SCOREBOARD] 13"));
} }
break; break;
} }
@@ -227,7 +227,7 @@ void Scoreboard::fillPanelTextures()
case ScoreboardMode::STAGE_INFO: case ScoreboardMode::STAGE_INFO:
{ {
// STAGE // STAGE
text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y, lang::getText("SCOREBOARD_57") + std::to_string(stage_)); text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y, lang::getText("[SCOREBOARD] 5") + std::to_string(stage_));
// POWERMETER // POWERMETER
power_meter_sprite_->setSpriteClip(0, 0, 40, 7); power_meter_sprite_->setSpriteClip(0, 0, 40, 7);
@@ -236,7 +236,7 @@ void Scoreboard::fillPanelTextures()
power_meter_sprite_->render(); power_meter_sprite_->render();
// HI-SCORE // HI-SCORE
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("SCOREBOARD_56")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("[SCOREBOARD] 4"));
const std::string name = hi_score_name_ == "" ? "" : hi_score_name_ + " - "; const std::string name = hi_score_name_ == "" ? "" : hi_score_name_ + " - ";
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, name + updateScoreText(hi_score_)); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, name + updateScoreText(hi_score_));
break; break;
@@ -249,7 +249,7 @@ void Scoreboard::fillPanelTextures()
text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i])); text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i]));
// CONTINUE // CONTINUE
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("SCOREBOARD_105")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("[SCOREBOARD] 10"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, std::to_string(continue_counter_[i])); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, std::to_string(continue_counter_[i]));
break; break;
} }
@@ -262,7 +262,7 @@ void Scoreboard::fillPanelTextures()
// ENTER NAME // ENTER NAME
{ {
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("SCOREBOARD_106")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("[SCOREBOARD] 11"));
SDL_FRect rect = {enter_name_pos_.x, enter_name_pos_.y, 5.0f, 7.0f}; SDL_FRect rect = {enter_name_pos_.x, enter_name_pos_.y, 5.0f, 7.0f};
// Recorre todos los slots de letras del nombre // Recorre todos los slots de letras del nombre
@@ -298,7 +298,7 @@ void Scoreboard::fillPanelTextures()
text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i])); text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i]));
// NAME // NAME
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("SCOREBOARD_106")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y, lang::getText("[SCOREBOARD] 11"));
/* TEXTO CENTRADO */ /* TEXTO CENTRADO */
// text_scoreboard_->writeDX(TEXT_CENTER | TEXT_COLOR, slot4_4_.x, slot4_4_.y, record_name_[i], 1, getColorLikeKnightRider(name_colors_, loop_counter_ / 5)); // text_scoreboard_->writeDX(TEXT_CENTER | TEXT_COLOR, slot4_4_.x, slot4_4_.y, record_name_[i], 1, getColorLikeKnightRider(name_colors_, loop_counter_ / 5));
@@ -309,12 +309,12 @@ void Scoreboard::fillPanelTextures()
case ScoreboardMode::GAME_COMPLETED: case ScoreboardMode::GAME_COMPLETED:
{ {
// GAME OVER // GAME OVER
text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("SCOREBOARD_102")); text_scoreboard_->writeCentered(slot4_1_.x, slot4_1_.y + 4, lang::getText("[SCOREBOARD] 7"));
// SCORE // SCORE
if (time_counter_ % 10 < 8) if (time_counter_ % 10 < 8)
{ {
text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_120")); text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("[SCOREBOARD] 14"));
text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, updateScoreText(score_[i])); text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, updateScoreText(score_[i]));
} }
} }
@@ -342,7 +342,7 @@ void Scoreboard::fillBackgroundTexture()
SDL_RenderClear(renderer_); SDL_RenderClear(renderer_);
// Copia las texturas de los paneles // Copia las texturas de los paneles
for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i)
{ {
SDL_RenderTexture(renderer_, panel_texture_[i], nullptr, &panel_[i].pos); SDL_RenderTexture(renderer_, panel_texture_[i], nullptr, &panel_[i].pos);
} }
@@ -358,8 +358,8 @@ void Scoreboard::fillBackgroundTexture()
void Scoreboard::recalculateAnchors() void Scoreboard::recalculateAnchors()
{ {
// Recalcula la posición y el tamaño de los paneles // Recalcula la posición y el tamaño de los paneles
const float panel_width = (float)rect_.w / (float)SCOREBOARD_MAX_PANELS; const float panel_width = (float)rect_.w / (float)[SCOREBOARD] MAX_PANELS;
for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i)
{ {
panel_[i].pos.x = roundf(panel_width * i); panel_[i].pos.x = roundf(panel_width * i);
panel_[i].pos.y = 0; panel_[i].pos.y = 0;
@@ -427,7 +427,7 @@ void Scoreboard::createPanelTextures()
panel_texture_.clear(); panel_texture_.clear();
// Crea las texturas para cada panel_ // Crea las texturas para cada panel_
for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i)
{ {
SDL_Texture *tex = SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, panel_[i].pos.w, panel_[i].pos.h); SDL_Texture *tex = SDL_CreateTexture(renderer_, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, panel_[i].pos.w, panel_[i].pos.h);
SDL_SetTextureBlendMode(tex, SDL_BLENDMODE_BLEND); SDL_SetTextureBlendMode(tex, SDL_BLENDMODE_BLEND);

View File

@@ -15,10 +15,10 @@ class Text;
class Texture; class Texture;
// --- Defines --- // --- Defines ---
constexpr int SCOREBOARD_LEFT_PANEL = 0; constexpr int [SCOREBOARD] LEFT_PANEL = 0;
constexpr int SCOREBOARD_CENTER_PANEL = 1; constexpr int [SCOREBOARD] CENTER_PANEL = 1;
constexpr int SCOREBOARD_RIGHT_PANEL = 2; constexpr int [SCOREBOARD] RIGHT_PANEL = 2;
constexpr int SCOREBOARD_MAX_PANELS = 3; constexpr int [SCOREBOARD] MAX_PANELS = 3;
// --- Enums --- // --- Enums ---
enum class ScoreboardMode : int enum class ScoreboardMode : int
@@ -83,13 +83,13 @@ private:
std::vector<SDL_Texture *> panel_texture_; // Texturas para dibujar cada panel std::vector<SDL_Texture *> panel_texture_; // Texturas para dibujar cada panel
// --- Variables de estado --- // --- Variables de estado ---
std::string name_[SCOREBOARD_MAX_PANELS] = {}; // Nombre de cada jugador std::string name_[[SCOREBOARD] MAX_PANELS] = {}; // Nombre de cada jugador
std::string record_name_[SCOREBOARD_MAX_PANELS] = {}; // Nombre introducido para la tabla de records std::string record_name_[[SCOREBOARD] MAX_PANELS] = {}; // Nombre introducido para la tabla de records
size_t selector_pos_[SCOREBOARD_MAX_PANELS] = {}; // Posición del selector de letra para introducir el nombre size_t selector_pos_[[SCOREBOARD] MAX_PANELS] = {}; // Posición del selector de letra para introducir el nombre
int score_[SCOREBOARD_MAX_PANELS] = {}; // Puntuación de los jugadores int score_[[SCOREBOARD] MAX_PANELS] = {}; // Puntuación de los jugadores
float mult_[SCOREBOARD_MAX_PANELS] = {}; // Multiplicador de los jugadores float mult_[[SCOREBOARD] MAX_PANELS] = {}; // Multiplicador de los jugadores
int continue_counter_[SCOREBOARD_MAX_PANELS] = {}; // Tiempo para continuar de los jugadores int continue_counter_[[SCOREBOARD] MAX_PANELS] = {}; // Tiempo para continuar de los jugadores
Panel panel_[SCOREBOARD_MAX_PANELS] = {}; // Lista con todos los paneles del marcador Panel panel_[[SCOREBOARD] MAX_PANELS] = {}; // Lista con todos los paneles del marcador
int stage_ = 1; // Número de fase actual int stage_ = 1; // Número de fase actual
int hi_score_ = 0; // Máxima puntuación int hi_score_ = 0; // Máxima puntuación
float power_ = 0; // Poder actual de la fase float power_ = 0; // Poder actual de la fase

View File

@@ -29,7 +29,7 @@ namespace section
GAME_PLAY_1P, // Jugar 1 jugador GAME_PLAY_1P, // Jugar 1 jugador
GAME_PLAY_2P, // Jugar 2 jugadores GAME_PLAY_2P, // Jugar 2 jugadores
TITLE_TIME_OUT, // Timeout en el título TITLE_TIME_OUT, // Timeout en el título
TITLE_1, // Opción 1 en el título [TITLE] PRESS_BUTTON_TO_PLAY, // Opción 1 en el título
TITLE_2, // Opción 2 en el título TITLE_2, // Opción 2 en el título
QUIT_WITH_KEYBOARD, // Salir con teclado QUIT_WITH_KEYBOARD, // Salir con teclado
QUIT_WITH_CONTROLLER, // Salir con mando QUIT_WITH_CONTROLLER, // Salir con mando

View File

@@ -92,13 +92,6 @@ void ServiceMenu::render()
element_text_->writeDX(TEXT_CENTER | TEXT_COLOR, rect_.x + rect_.w / 2, y, option_pairs_.at(i).first, -2, i == selected_ ? selected_color_ : text_color_); element_text_->writeDX(TEXT_CENTER | TEXT_COLOR, rect_.x + rect_.w / 2, y, option_pairs_.at(i).first, -2, i == selected_ ? selected_color_ : text_color_);
} }
} }
/*
SDL_SetRenderDrawColor(Screen::get()->getRenderer(), 0, 255, 0, 255);
for (int i = rect_.y; i < rect_.y + rect_.h; i += line_height_)
{
SDL_RenderLine(Screen::get()->getRenderer(), rect_.x, i, rect_.x + rect_.w, i);
}
*/
} }
} }

View File

@@ -46,7 +46,7 @@ Title::Title()
Resource::get()->getTexture("smb2.gif")->setPalette(1); Resource::get()->getTexture("smb2.gif")->setPalette(1);
// Asigna valores a otras variables // Asigna valores a otras variables
section::options = section::Options::TITLE_1; section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY;
const bool IS_TITLE_TO_DEMO = (section::attract_mode == section::AttractMode::TITLE_TO_DEMO); const bool IS_TITLE_TO_DEMO = (section::attract_mode == section::AttractMode::TITLE_TO_DEMO);
next_section_ = IS_TITLE_TO_DEMO ? section::Name::GAME_DEMO : section::Name::LOGO; next_section_ = IS_TITLE_TO_DEMO ? section::Name::GAME_DEMO : section::Name::LOGO;
section::attract_mode = IS_TITLE_TO_DEMO ? section::AttractMode::TITLE_TO_LOGO : section::AttractMode::TITLE_TO_DEMO; section::attract_mode = IS_TITLE_TO_DEMO ? section::AttractMode::TITLE_TO_LOGO : section::AttractMode::TITLE_TO_DEMO;
@@ -112,7 +112,7 @@ void Title::render()
// 'PRESS TO PLAY' // 'PRESS TO PLAY'
if (counter_ % 50 > 14 && !define_buttons_->isEnabled()) if (counter_ % 50 > 14 && !define_buttons_->isEnabled())
{ {
text_->writeDX(TEXT_CENTER | TEXT_SHADOW, param.game.game_area.center_x, param.title.press_start_position, lang::getText("TITLE_23"), 1, NO_COLOR, 1, shadow); text_->writeDX(TEXT_CENTER | TEXT_SHADOW, param.game.game_area.center_x, param.title.press_start_position, lang::getText("[TITLE] PRESS_BUTTON_TO_PLAY"), 1, NO_COLOR, 1, shadow);
} }
} }
@@ -121,7 +121,7 @@ void Title::render()
// 'PRESS TO PLAY' // 'PRESS TO PLAY'
if (counter_ % 10 > 4 && !define_buttons_->isEnabled()) if (counter_ % 10 > 4 && !define_buttons_->isEnabled())
{ {
text_->writeDX(TEXT_CENTER | TEXT_SHADOW, param.game.game_area.center_x, param.title.press_start_position, lang::getText("TITLE_23"), 1, NO_COLOR, 1, shadow); text_->writeDX(TEXT_CENTER | TEXT_SHADOW, param.game.game_area.center_x, param.title.press_start_position, lang::getText("[TITLE] PRESS_BUTTON_TO_PLAY"), 1, NO_COLOR, 1, shadow);
} }
} }
@@ -277,7 +277,7 @@ void Title::swapControllers()
void Title::swapKeyboard() void Title::swapKeyboard()
{ {
swapOptionsKeyboard(); swapOptionsKeyboard();
std::string text = lang::getText("DEFINE_BUTTONS_100") + std::to_string(getPlayerWhoUsesKeyboard()) + ": " + lang::getText("MENU_OPTIONS_69"); std::string text = lang::getText("[DEFINE_BUTTONS] PLAYER") + std::to_string(getPlayerWhoUsesKeyboard()) + ": " + lang::getText("[DEFINE_BUTTONS] KEYBOARD");
Notifier::get()->show({text}); Notifier::get()->show({text});
} }
@@ -302,7 +302,7 @@ void Title::showControllers()
const size_t index = player_controller_index.at(i); const size_t index = player_controller_index.at(i);
if (options.controllers.at(index).plugged) if (options.controllers.at(index).plugged)
{ {
text.at(i) = lang::getText("DEFINE_BUTTONS_100") + std::to_string(i + 1) + ": " + options.controllers.at(index).name; text.at(i) = lang::getText("[DEFINE_BUTTONS] PLAYER") + std::to_string(i + 1) + ": " + options.controllers.at(index).name;
} }
} }

View File

@@ -20,9 +20,9 @@ const Color BG_COLOR = Color(0X27, 0X27, 0X36);
const Color NO_COLOR = Color(0XFF, 0XFF, 0XFF); const Color NO_COLOR = Color(0XFF, 0XFF, 0XFF);
const Color SHADOW_TEXT_COLOR = Color(0X43, 0X43, 0X4F); const Color SHADOW_TEXT_COLOR = Color(0X43, 0X43, 0X4F);
const Color SEPARATOR_COLOR = Color(0X0D, 0X1A, 0X2B); const Color SEPARATOR_COLOR = Color(0X0D, 0X1A, 0X2B);
const Color SCOREBOARD_EASY_COLOR = Color(0X4B, 0X69, 0X2F); const Color [SCOREBOARD] EASY_COLOR = Color(0X4B, 0X69, 0X2F);
const Color SCOREBOARD_NORMAL_COLOR = Color(0X2E, 0X3F, 0X47); const Color [SCOREBOARD] NORMAL_COLOR = Color(0X2E, 0X3F, 0X47);
const Color SCOREBOARD_HARD_COLOR = Color(0X76, 0X42, 0X8A); const Color [SCOREBOARD] HARD_COLOR = Color(0X76, 0X42, 0X8A);
const Color FLASH_COLOR = Color(0XFF, 0XFF, 0XFF); const Color FLASH_COLOR = Color(0XFF, 0XFF, 0XFF);
const Color FADE_COLOR = Color(0X27, 0X27, 0X36); const Color FADE_COLOR = Color(0X27, 0X27, 0X36);
const Color ORANGE_COLOR = Color(0XFF, 0X7A, 0X00); const Color ORANGE_COLOR = Color(0XFF, 0X7A, 0X00);
@@ -129,7 +129,7 @@ std::string boolToString(bool value)
// Convierte un valor booleano en una cadena "on" o "off" // Convierte un valor booleano en una cadena "on" o "off"
std::string boolToOnOff(bool value) std::string boolToOnOff(bool value)
{ {
return value ? lang::getText("MISC_128") : lang::getText("MISC_129"); return value ? lang::getText("[NOTIFICATIONS] 06") : lang::getText("[NOTIFICATIONS] 07");
} }
// Convierte una cadena a minusculas // Convierte una cadena a minusculas

View File

@@ -115,9 +115,9 @@ extern const Color BG_COLOR;
extern const Color NO_COLOR; extern const Color NO_COLOR;
extern const Color SHADOW_TEXT_COLOR; extern const Color SHADOW_TEXT_COLOR;
extern const Color SEPARATOR_COLOR; extern const Color SEPARATOR_COLOR;
extern const Color SCOREBOARD_EASY_COLOR; extern const Color [SCOREBOARD] EASY_COLOR;
extern const Color SCOREBOARD_NORMAL_COLOR; extern const Color [SCOREBOARD] NORMAL_COLOR;
extern const Color SCOREBOARD_HARD_COLOR; extern const Color [SCOREBOARD] HARD_COLOR;
extern const Color FLASH_COLOR; extern const Color FLASH_COLOR;
extern const Color FADE_COLOR; extern const Color FADE_COLOR;
extern const Color ORANGE_COLOR; extern const Color ORANGE_COLOR;