diff --git a/data/lang/ba_BA.json b/data/lang/ba_BA.json index 97326ca..610e4f1 100644 --- a/data/lang/ba_BA.json +++ b/data/lang/ba_BA.json @@ -1,72 +1,80 @@ { - "INSTRUCTIONS_11": "Objectiu", - "INSTRUCTIONS_12": "HAS D'EXPLOTAR", - "INSTRUCTIONS_13": "TANTS GLOBUS COM PUGUES", - "INSTRUCTIONS_14": "LA DIFICULTAT AUGMENTA", - "INSTRUCTIONS_15": "A MESURA QUE VAS PUNTUANT", - "INSTRUCTIONS_16": "Objectes", - "INSTRUCTIONS_17": "1.000 PUNTS", - "INSTRUCTIONS_18": "2.500 PUNTS", - "INSTRUCTIONS_19": "5.000 PUNTS", - "INSTRUCTIONS_20": "PARA EL TEMPS", - "INSTRUCTIONS_21": "VIDA EXTRA", - "TITLE_23": "PULSA PER JUGAR", - "INTRO_27": "Un dia qualsevol de l'any 2000", - "INTRO_28": "Tot esta tranquil a la UPV", - "INTRO_29": "Fins que un desaprensiu...", - "INTRO_30": "HEY! ME ANE A FERME UN CORTAET...", - "INTRO_31": "UAAAAAAAAAAAAA!!!", - "INTRO_32": "Espera un moment...", - "INTRO_33": "Si resulta que no tinc solt!", - "INTRO_34": "VAJA BIRRIA DE MAQUINA !!!", - "INTRO_35": "blop... blop... blop...", - "GAME_TEXT_38": " fases mes!", - "HIGHSCORE_TABLE_42": "Millors puntuacions", - "GAME_COMPLETION_TEXT_50": "Felicitats!!", - "SCOREBOARD_53": "Jugador 1", - "SCOREBOARD_54": "Jugador 2", - "SCOREBOARD_55": "Multiplicador", - "SCOREBOARD_56": "Max. puntuacio", - "SCOREBOARD_57": "Fase ", - "MENU_OPTIONS_69": "Teclat", - "GAMEPLAY_75": "Endavant!", - "GAMEPLAY_76": "1.000.000 de punts!", - "GAME_TEXT_79": "Ultima fase!", - "NOTIFICATIONS_94": "Torna a polsar per eixir", - "DEFINE_BUTTONS_95": "Disparar cap a l'esquerra", - "DEFINE_BUTTONS_96": "Disparar cap amunt", - "DEFINE_BUTTONS_97": "Disparar cap a la dreta", - "DEFINE_BUTTONS_98": "Start", - "DEFINE_BUTTONS_99": "Servei", - "DEFINE_BUTTONS_100": "Jugador ", - "SCOREBOARD_101": "Mode demostracio", - "SCOREBOARD_102": "Game Over", - "SCOREBOARD_103": "Pulsa START", - "SCOREBOARD_104": "per jugar", - "SCOREBOARD_105": "Continuar?", - "SCOREBOARD_106": "Posa el nom", - "HELP_111": "Reiniciar", - "SCOREBOARD_114": "Per favor", - "SCOREBOARD_115": "espere", - "NOTIFICATIONS_116": "Torna a polsar per apagar el sistema", - "GAME_TEXT_117": "SuperPoder!", - "GAME_TEXT_118": "+1 Colp", - "GAME_TEXT_119": "Temps!", - "SCOREBOARD_120": "Puntuacio", - "CREDITS_121": "PROGRAMAT I DISSENYAT PER", - "CREDITS_122": "GRAFICS DIBUIXATS PER", - "CREDITS_123": "MUSICA COMPOSADA PER", - "CREDITS_124": "EFECTES DE SO", - "NOTIFICATIONS_125": "Torna a polsar per reiniciar", - "NOTIFICATIONS_126": "Torna a polsar per canviar el idioma a", - "NOTIFICATIONS_127": "Idioma canviat a", - "MISC_128": "activat", - "MISC_129": "desactivat", - "MISC_130": "Dispar automatic", - "MISC_131": "Zoom de finestra", - "MISC_132": "Mode finestra", - "MISC_133": "Mode pantalla completa", - "MISC_134": "Mode d'escalat sencer", - "MISC_135": "Filtre", - "MISC_136": "Sincronisme vertical" + "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMAT I DISSENYAT PER", + "[CREDITS] PIXELART_DRAWN_BY": "GRAFICS DIBUIXATS PER", + "[CREDITS] MUSIC_COMPOSED_BY": "MUSICA COMPOSADA PER", + "[CREDITS] SOUND_EFFECTS": "EFECTES DE SO", + + "[DEFINE_BUTTONS] FIRE_LEFT": "Disparar cap a l'esquerra", + "[DEFINE_BUTTONS] FIRE_UP": "Disparar cap amunt", + "[DEFINE_BUTTONS] FIRE_RIGHT": "Disparar cap a la dreta", + "[DEFINE_BUTTONS] START": "Start", + "[DEFINE_BUTTONS] SERVICE_MENU": "Menu de servei", + "[DEFINE_BUTTONS] PLAYER": "Jugador", + "[DEFINE_BUTTONS] KEYBOARD": "Teclat", + + "[GAME_TEXT] 1": "Felicitats!!", + "[GAME_TEXT] 2": " fases mes!", + "[GAME_TEXT] 3": "Ultima fase!", + "[GAME_TEXT] 4": "SuperPoder!", + "[GAME_TEXT] 5": "+1 Colp", + "[GAME_TEXT] 6": "Temps!", + "[GAME_TEXT] 7": "Endavant!", + "[GAME_TEXT] 8": "1.000.000 de punts!", + + "[HIGHSCORE_TABLE] CAPTION": "Millors puntuacions", + + "[INSTRUCTIONS] 01": "Objectiu", + "[INSTRUCTIONS] 02": "HAS D'EXPLOTAR", + "[INSTRUCTIONS] 03": "TANTS GLOBUS COM PUGUES", + "[INSTRUCTIONS] 04": "LA DIFICULTAT AUGMENTA", + "[INSTRUCTIONS] 05": "A MESURA QUE VAS PUNTUANT", + "[INSTRUCTIONS] 06": "Objectes", + "[INSTRUCTIONS] 07": "1.000 PUNTS", + "[INSTRUCTIONS] 08": "2.500 PUNTS", + "[INSTRUCTIONS] 09": "5.000 PUNTS", + "[INSTRUCTIONS] 10": "PARA EL TEMPS", + "[INSTRUCTIONS] 11": "VIDA EXTRA", + + "[INTRO] 1": "Un dia qualsevol de l'any 2000", + "[INTRO] 2": "Tot esta tranquil a la UPV", + "[INTRO] 3": "Fins que un desaprensiu...", + "[INTRO] 4": "HEY! ME ANE A FERME UN CORTAET...", + "[INTRO] 5": "UAAAAAAAAAAAAA!!!", + "[INTRO] 6": "Espera un moment...", + "[INTRO] 7": "Si resulta que no tinc solt!", + "[INTRO] 8": "VAJA BIRRIA DE MAQUINA !!!", + "[INTRO] 9": "blop... blop... blop...", + + "[NOTIFICATIONS] 01": "Torna a polsar per eixir", + "[NOTIFICATIONS] 02": "Torna a polsar per apagar el sistema", + "[NOTIFICATIONS] 03": "Torna a polsar per reiniciar", + "[NOTIFICATIONS] 04": "Torna a polsar per canviar el idioma a", + "[NOTIFICATIONS] 05": "Idioma canviat a", + "[NOTIFICATIONS] 06": "activat", + "[NOTIFICATIONS] 07": "desactivat", + "[NOTIFICATIONS] 08": "Dispar automatic", + "[NOTIFICATIONS] 09": "Zoom de finestra", + "[NOTIFICATIONS] 10": "Mode finestra", + "[NOTIFICATIONS] 11": "Mode pantalla completa", + "[NOTIFICATIONS] 12": "Mode d'escalat sencer", + "[NOTIFICATIONS] 13": "Filtre", + "[NOTIFICATIONS] 14": "Sincronisme vertical", + "[NOTIFICATIONS] 15": "Reiniciar", + + "[SCOREBOARD] 1": "Jugador 1", + "[SCOREBOARD] 2": "Jugador 2", + "[SCOREBOARD] 3": "Multiplicador", + "[SCOREBOARD] 4": "Max. puntuacio", + "[SCOREBOARD] 5": "Fase", + "[SCOREBOARD] 6": "Mode demostracio", + "[SCOREBOARD] 7": "Game Over", + "[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" } \ No newline at end of file diff --git a/data/lang/en_UK.json b/data/lang/en_UK.json index bc34132..0ed9fdf 100644 --- a/data/lang/en_UK.json +++ b/data/lang/en_UK.json @@ -1,72 +1,80 @@ { - "INSTRUCTIONS_11": "OBJECTIVE", - "INSTRUCTIONS_12": "YOU HAVE TO POP AS MANY", - "INSTRUCTIONS_13": "BALLOONS AS YOU CAN", - "INSTRUCTIONS_14": "DIFFICULTY WILL BE INCREASED", - "INSTRUCTIONS_15": "AS YOU SCORE POINTS", - "INSTRUCTIONS_16": "ITEMS", - "INSTRUCTIONS_17": "1.000 POINTS", - "INSTRUCTIONS_18": "2.500 POINTS", - "INSTRUCTIONS_19": "5.000 POINTS", - "INSTRUCTIONS_20": "TIME STOPPER", - "INSTRUCTIONS_21": "EXTRA HIT", - "TITLE_23": "PRESS START BUTTON TO PLAY", - "INTRO_27": "Any day of the year 2000", - "INTRO_28": "Everything is quiet at the UPV", - "INTRO_29": "Until a bastard arrives...", - "INTRO_30": " YO! GONNA TAKE A CAFELITO... ", - "INTRO_31": "AAAAAAAARGHHHH!!!", - "INTRO_32": "Wait a moment...", - "INTRO_33": " I don't have any loose! ", - "INTRO_34": "FUCKING MACHINE!", - "INTRO_35": "Blop... blop... blop...", - "GAME_TEXT_38": " stages left!", - "HIGHSCORE_TABLE_42": "Best scores", - "GAME_COMPLETION_TEXT_50": "Congratulations!!", - "SCOREBOARD_53": "Player 1", - "SCOREBOARD_54": "Player 2", - "SCOREBOARD_55": "Multiplier", - "SCOREBOARD_56": "High Score", - "SCOREBOARD_57": "Stage ", - "MENU_OPTIONS_69": "Keyboard", - "GAMEPLAY_75": "Get Ready!", - "GAMEPLAY_76": "1.000.000 points!", - "GAME_TEXT_79": "Last stage!", - "NOTIFICATIONS_94": "Press again to quit", - "DEFINE_BUTTONS_95": "Fire left", - "DEFINE_BUTTONS_96": "Fire up", - "DEFINE_BUTTONS_97": "Fire right", - "DEFINE_BUTTONS_98": "Start", - "DEFINE_BUTTONS_99": "Service", - "DEFINE_BUTTONS_100": "Player", - "SCOREBOARD_101": "Demo mode", - "SCOREBOARD_102": "Game Over", - "SCOREBOARD_103": "Press START", - "SCOREBOARD_104": "to play", - "SCOREBOARD_105": "Continue?", - "SCOREBOARD_106": "Enter name", - "HELP_111": "Reset", - "SCOREBOARD_114": "Please", - "SCOREBOARD_115": "wait", - "NOTIFICATIONS_116": "Press again to shutdown system", - "GAME_TEXT_117": "PowerUp", - "GAME_TEXT_118": "+1 Hit", - "GAME_TEXT_119": "Stop!", - "SCOREBOARD_120": "Score", - "CREDITS_121": "PROGRAMMED AND DESIGNED BY", - "CREDITS_122": "PIXELART DRAWN BY", - "CREDITS_123": "MUSIC COMPOSED BY", - "CREDITS_124": "SOUND EFFECTS", - "NOTIFICATIONS_125": "Press again to reset", - "NOTIFICATIONS_126": "Press again to change languaje to", - "NOTIFICATIONS_127": "Language set to", - "MISC_128": "on", - "MISC_129": "off", - "MISC_130": "Autofire", - "MISC_131": "Window zoom", - "MISC_132": "Window mode", - "MISC_133": "Fullscreen mode", - "MISC_134": "Integer scale", - "MISC_135": "Filter", - "MISC_136": "Vertical Sync" + "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMMED AND DESIGNED BY", + "[CREDITS] PIXELART_DRAWN_BY" : "PIXELART DRAWN BY", + "[CREDITS] MUSIC_COMPOSED_BY" : "MUSIC COMPOSED BY", + "[CREDITS] SOUND_EFFECTS" : "SOUND EFFECTS", + + "[DEFINE_BUTTONS] FIRE_LEFT" : "Fire left", + "[DEFINE_BUTTONS] FIRE_UP" : "Fire up", + "[DEFINE_BUTTONS] FIRE_RIGHT" : "Fire right", + "[DEFINE_BUTTONS] START" : "Start", + "[DEFINE_BUTTONS] SERVICE_MENU": "Service menu", + "[DEFINE_BUTTONS] PLAYER" : "Player", + "[DEFINE_BUTTONS] KEYBOARD" : "Keyboard", + + "[GAME_TEXT] 1": "Congratulations!!", + "[GAME_TEXT] 2": " stages left!", + "[GAME_TEXT] 3": "Last stage!", + "[GAME_TEXT] 4": "PowerUp", + "[GAME_TEXT] 5": "+1 Hit", + "[GAME_TEXT] 6": "Stop!", + "[GAME_TEXT] 7": "Get Ready!", + "[GAME_TEXT] 8": "1.000.000 points!", + + "[HIGHSCORE_TABLE] CAPTION": "Best scores", + + "[INSTRUCTIONS] 01": "OBJECTIVE", + "[INSTRUCTIONS] 02": "YOU HAVE TO POP AS MANY", + "[INSTRUCTIONS] 03": "BALLOONS AS YOU CAN", + "[INSTRUCTIONS] 04": "DIFFICULTY WILL BE INCREASED", + "[INSTRUCTIONS] 05": "AS YOU SCORE POINTS", + "[INSTRUCTIONS] 06": "ITEMS", + "[INSTRUCTIONS] 07": "1.000 POINTS", + "[INSTRUCTIONS] 08": "2.500 POINTS", + "[INSTRUCTIONS] 09": "5.000 POINTS", + "[INSTRUCTIONS] 10": "TIME STOPPER", + "[INSTRUCTIONS] 11": "EXTRA HIT", + + "[INTRO] 1": "Any day of the year 2000", + "[INTRO] 2": "Everything is quiet at the UPV", + "[INTRO] 3": "Until a bastard arrives...", + "[INTRO] 4": "YO! GONNA TAKE A CAFELITO...", + "[INTRO] 5": "AAAAAAAARGHHHH!!!", + "[INTRO] 6": "Wait a moment...", + "[INTRO] 7": "I don't have any loose!", + "[INTRO] 8": "FUCKING MACHINE!", + "[INTRO] 9": "Blop... blop... blop...", + + "[NOTIFICATIONS] 01": "Press again to quit", + "[NOTIFICATIONS] 02": "Press again to shutdown system", + "[NOTIFICATIONS] 03": "Press again to reset", + "[NOTIFICATIONS] 04": "Press again to change language to", + "[NOTIFICATIONS] 05": "Language set to", + "[NOTIFICATIONS] 06": "on", + "[NOTIFICATIONS] 07": "off", + "[NOTIFICATIONS] 08": "Autofire", + "[NOTIFICATIONS] 09": "Window zoom", + "[NOTIFICATIONS] 10": "Window mode", + "[NOTIFICATIONS] 11": "Fullscreen mode", + "[NOTIFICATIONS] 12": "Integer scale", + "[NOTIFICATIONS] 13": "Filter", + "[NOTIFICATIONS] 14": "Vertical Sync", + "[NOTIFICATIONS] 15": "Reset", + + "[SCOREBOARD] 1": "Player 1", + "[SCOREBOARD] 2": "Player 2", + "[SCOREBOARD] 3": "Multiplier", + "[SCOREBOARD] 4": "High Score", + "[SCOREBOARD] 5": "Stage", + "[SCOREBOARD] 6": "Demo mode", + "[SCOREBOARD] 7": "Game Over", + "[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" } \ No newline at end of file diff --git a/data/lang/es_ES.json b/data/lang/es_ES.json index 4c196c8..d87bbf7 100644 --- a/data/lang/es_ES.json +++ b/data/lang/es_ES.json @@ -1,72 +1,80 @@ { - "INSTRUCTIONS_11": "OBJETIVO", - "INSTRUCTIONS_12": "TIENES QUE EXPLOTAR", - "INSTRUCTIONS_13": "TANTOS GLOBOS COMO PUEDAS", - "INSTRUCTIONS_14": "LA DIFICULTAD SE INCREMENTA", - "INSTRUCTIONS_15": "A MEDIDA QUE VAS PUNTUANDO", - "INSTRUCTIONS_16": "OBJETOS", - "INSTRUCTIONS_17": "1.000 PUNTOS", - "INSTRUCTIONS_18": "2.500 PUNTOS", - "INSTRUCTIONS_19": "5.000 PUNTOS", - "INSTRUCTIONS_20": "DETIENE EL TIEMPO", - "INSTRUCTIONS_21": "VIDA EXTRA", - "TITLE_23": "PULSA UN BOTON PARA JUGAR", - "INTRO_27": "Un dia cualquiera del a{o 2000", - "INTRO_28": "Todo esta tranquilo en la UPV", - "INTRO_29": "Hasta que un desaprensivo...", - "INTRO_30": "HEY! VOY A SACARME UN TALLADET...", - "INTRO_31": "UAAAAAAAAAAAAA!!!", - "INTRO_32": "Espera un momento...", - "INTRO_33": "Si no llevo suelto encima!", - "INTRO_34": "MIERDA DE MAQUINA!", - "INTRO_35": "Blop... blop... blop...", - "GAME_TEXT_38": " fases mas!", - "HIGHSCORE_TABLE_42": "Mejores puntuaciones", - "GAME_COMPLETION_TEXT_50": "Felicidades!!", - "SCOREBOARD_53": "Jugador 1", - "SCOREBOARD_54": "Jugador 2", - "SCOREBOARD_55": "Multiplicador", - "SCOREBOARD_56": "Max. puntuacion", - "SCOREBOARD_57": "Fase ", - "MENU_OPTIONS_69": "Teclado", - "GAMEPLAY_75": "Adelante!", - "GAMEPLAY_76": "1.000.000 de puntos!", - "GAME_TEXT_79": "Ultima fase!", - "NOTIFICATIONS_94": "Pulsa otra vez para salir", - "DEFINE_BUTTONS_95": "Disparar a la izquierda", - "DEFINE_BUTTONS_96": "Disparar hacia arriba", - "DEFINE_BUTTONS_97": "Disparar hacia la derecha", - "DEFINE_BUTTONS_98": "Start", - "DEFINE_BUTTONS_99": "Servicio", - "DEFINE_BUTTONS_100": "Jugador ", - "SCOREBOARD_101": "Mode demostracion", - "SCOREBOARD_102": "Game Over", - "SCOREBOARD_103": "Pulsa START", - "SCOREBOARD_104": "para jugar", - "SCOREBOARD_105": "Continuar?", - "SCOREBOARD_106": "Pon tu nombre", - "HELP_111": "Reiniciar", - "SCOREBOARD_114": "Por favor", - "SCOREBOARD_115": "espere", - "NOTIFICATIONS_116": "Pulsa otra vez para apagar el sistema", - "GAME_TEXT_117": "Potenciador", - "GAME_TEXT_118": "+1 Golpe", - "GAME_TEXT_119": "Tiempo!", - "SCOREBOARD_120": "Puntuacion", - "CREDITS_121": "PROGRAMADO Y DISE{ADO POR", - "CREDITS_122": "GRAFICOS DIBUJADOS POR", - "CREDITS_123": "MUSICA COMPUESTA POR", - "CREDITS_124": "EFECTOS DE SONIDO", - "NOTIFICATIONS_125": "Vuelve a pulsar para reiniciar", - "NOTIFICATIONS_126": "Vuelve a pulsar para cambiar el idioma a", - "NOTIFICATIONS_127": "Idioma cambiado a", - "MISC_128": "activado", - "MISC_129": "desactivado", - "MISC_130": "Disparo automático", - "MISC_131": "Zoom de ventana", - "MISC_132": "Modo ventana", - "MISC_133": "Modo pantalla completa", - "MISC_134": "Modo de escalado entero", - "MISC_135": "Filtro", - "MISC_136": "Sincronismo vertical" + "[CREDITS] PROGRAMMED_AND_DESIGNED_BY": "PROGRAMADO Y DISEÑADO POR", + "[CREDITS] PIXELART_DRAWN_BY": "GRÁFICOS DIBUJADOS POR", + "[CREDITS] MUSIC_COMPOSED_BY": "MÚSICA COMPUESTA POR", + "[CREDITS] SOUND_EFFECTS": "EFECTOS DE SONIDO", + + "[DEFINE_BUTTONS] FIRE_LEFT": "Disparar a la izquierda", + "[DEFINE_BUTTONS] FIRE_UP": "Disparar hacia arriba", + "[DEFINE_BUTTONS] FIRE_RIGHT": "Disparar hacia la derecha", + "[DEFINE_BUTTONS] START": "Start", + "[DEFINE_BUTTONS] SERVICE_MENU": "Menu de servicio", + "[DEFINE_BUTTONS] PLAYER": "Jugador", + "[DEFINE_BUTTONS] KEYBOARD": "Teclado", + + "[GAME_TEXT] 1": "Felicidades!!", + "[GAME_TEXT] 2": " fases más!", + "[GAME_TEXT] 3": "Última fase!", + "[GAME_TEXT] 4": "Potenciador", + "[GAME_TEXT] 5": "+1 Golpe", + "[GAME_TEXT] 6": "Tiempo!", + "[GAME_TEXT] 7": "Adelante!", + "[GAME_TEXT] 8": "1.000.000 de puntos!", + + "[HIGHSCORE_TABLE] CAPTION": "Mejores puntuaciones", + + "[INSTRUCTIONS] 01": "OBJETIVO", + "[INSTRUCTIONS] 02": "TIENES QUE EXPLOTAR", + "[INSTRUCTIONS] 03": "TANTOS GLOBOS COMO PUEDAS", + "[INSTRUCTIONS] 04": "LA DIFICULTAD SE INCREMENTA", + "[INSTRUCTIONS] 05": "A MEDIDA QUE VAS PUNTUANDO", + "[INSTRUCTIONS] 06": "OBJETOS", + "[INSTRUCTIONS] 07": "1.000 PUNTOS", + "[INSTRUCTIONS] 08": "2.500 PUNTOS", + "[INSTRUCTIONS] 09": "5.000 PUNTOS", + "[INSTRUCTIONS] 10": "DETIENE EL TIEMPO", + "[INSTRUCTIONS] 11": "VIDA EXTRA", + + "[INTRO] 1": "Un día cualquiera del año 2000", + "[INTRO] 2": "Todo está tranquilo en la UPV", + "[INTRO] 3": "Hasta que un desaprensivo...", + "[INTRO] 4": "HEY! VOY A SACARME UN TALLADET...", + "[INTRO] 5": "UAAAAAAAAAAAAA!!!", + "[INTRO] 6": "Espera un momento...", + "[INTRO] 7": "Si no llevo suelto encima!", + "[INTRO] 8": "MIERDA DE MÁQUINA!", + "[INTRO] 9": "Blop... blop... blop...", + + "[NOTIFICATIONS] 01": "Pulsa otra vez para salir", + "[NOTIFICATIONS] 02": "Pulsa otra vez para apagar el sistema", + "[NOTIFICATIONS] 03": "Vuelve a pulsar para reiniciar", + "[NOTIFICATIONS] 04": "Vuelve a pulsar para cambiar el idioma a", + "[NOTIFICATIONS] 05": "Idioma cambiado a", + "[NOTIFICATIONS] 06": "activado", + "[NOTIFICATIONS] 07": "desactivado", + "[NOTIFICATIONS] 08": "Disparo automático", + "[NOTIFICATIONS] 09": "Zoom de ventana", + "[NOTIFICATIONS] 10": "Modo ventana", + "[NOTIFICATIONS] 11": "Modo pantalla completa", + "[NOTIFICATIONS] 12": "Modo de escalado entero", + "[NOTIFICATIONS] 13": "Filtro", + "[NOTIFICATIONS] 14": "Sincronismo vertical", + "[NOTIFICATIONS] 15": "Reiniciar", + + "[SCOREBOARD] 1": "Jugador 1", + "[SCOREBOARD] 2": "Jugador 2", + "[SCOREBOARD] 3": "Multiplicador", + "[SCOREBOARD] 4": "Max. puntuación", + "[SCOREBOARD] 5": "Fase", + "[SCOREBOARD] 6": "Modo demostración", + "[SCOREBOARD] 7": "Game Over", + "[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" } \ No newline at end of file diff --git a/source/credits.cpp b/source/credits.cpp index 8f9c3a7..064f0ee 100644 --- a/source/credits.cpp +++ b/source/credits.cpp @@ -142,7 +142,7 @@ void Credits::checkEvents() void Credits::checkInput() { if (!ServiceMenu::get()->isEnabled()) - { + { // Comprueba si se ha pulsado cualquier botón (de los usados para jugar) if (Input::get()->checkAnyButtonPressed(INPUT_ALLOW_REPEAT)) { @@ -169,10 +169,10 @@ void Credits::fillTextTexture() SDL_RenderClear(Screen::get()->getRenderer()); const std::array TEXTS = { - lang::getText("CREDITS_121"), - lang::getText("CREDITS_122"), - lang::getText("CREDITS_123"), - lang::getText("CREDITS_124"), + lang::getText("[CREDITS] PROGRAMMED_AND_DESIGNED_BY"), + lang::getText("[CREDITS] PIXELART_DRAWN_BY"), + lang::getText("[CREDITS] MUSIC_COMPOSED_BY"), + lang::getText("[CREDITS] SOUND_EFFECTS"), "JAILDESIGNER", "JAILDOCTOR (INTRO)", "ERIC MATYAS (SOUNDIMAGE.ORG)", diff --git a/source/define_buttons.cpp b/source/define_buttons.cpp index 431519c..ae2a4ee 100644 --- a/source/define_buttons.cpp +++ b/source/define_buttons.cpp @@ -28,7 +28,7 @@ void DefineButtons::render() { 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_ + 10, buttons_.at(index_button_).label); } @@ -135,9 +135,9 @@ bool DefineButtons::checkButtonNotInUse(SDL_GamepadButton button) void DefineButtons::clearButtons() { buttons_.clear(); - buttons_.emplace_back(lang::getText("DEFINE_BUTTONS_95"), 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_97"), 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_99"), InputAction::SERVICE, 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] FIRE_UP"), InputAction::FIRE_CENTER, 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] START"), InputAction::START, SDL_GAMEPAD_BUTTON_INVALID); + buttons_.emplace_back(lang::getText("[DEFINE_BUTTONS] SERVICE_MENU"), InputAction::SERVICE, SDL_GAMEPAD_BUTTON_INVALID); } \ No newline at end of file diff --git a/source/game.cpp b/source/game.cpp index 3e56ff6..e0494e3 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -276,7 +276,7 @@ void Game::updateStage() else { 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)); } } @@ -1645,8 +1645,8 @@ void Game::initDemo(int player_id) Audio::get()->disableSound(); // Configura los marcadores - scoreboard_->setMode(SCOREBOARD_LEFT_PANEL, ScoreboardMode::DEMO); - scoreboard_->setMode(SCOREBOARD_RIGHT_PANEL, ScoreboardMode::DEMO); + scoreboard_->setMode([SCOREBOARD] LEFT_PANEL, ScoreboardMode::DEMO); + scoreboard_->setMode([SCOREBOARD] RIGHT_PANEL, ScoreboardMode::DEMO); } // Modo grabar demo @@ -1672,7 +1672,7 @@ void Game::setTotalPower() void Game::initScoreboard() { 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_) { scoreboard_->setName(player->getScoreBoardPanel(), player->getName()); @@ -1693,7 +1693,7 @@ void Game::initDifficultyVars() { balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]); difficulty_score_multiplier_ = 0.5f; - scoreboard_->setColor(SCOREBOARD_EASY_COLOR); + scoreboard_->setColor([SCOREBOARD] EASY_COLOR); break; } @@ -1701,7 +1701,7 @@ void Game::initDifficultyVars() { balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[0]); difficulty_score_multiplier_ = 1.0f; - scoreboard_->setColor(SCOREBOARD_NORMAL_COLOR); + scoreboard_->setColor([SCOREBOARD] NORMAL_COLOR); break; } @@ -1709,7 +1709,7 @@ void Game::initDifficultyVars() { balloon_manager_->setDefaultBalloonSpeed(BALLOON_SPEED[4]); difficulty_score_multiplier_ = 1.5f; - scoreboard_->setColor(SCOREBOARD_HARD_COLOR); + scoreboard_->setColor([SCOREBOARD] HARD_COLOR); break; } @@ -1726,13 +1726,13 @@ void Game::initPlayers(int player_id) // Crea los dos jugadores const int y = param.game.play_area.rect.h - 30; players_.emplace_back(std::make_unique(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()->setName(lang::getText("SCOREBOARD_53")); + players_.back()->setScoreBoardPanel([SCOREBOARD] LEFT_PANEL); + players_.back()->setName(lang::getText("[SCOREBOARD] 1")); players_.back()->setController(getController(players_.back()->getId())); players_.emplace_back(std::make_unique(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()->setName(lang::getText("SCOREBOARD_54")); + players_.back()->setScoreBoardPanel([SCOREBOARD] RIGHT_PANEL); + players_.back()->setName(lang::getText("[SCOREBOARD] 2")); players_.back()->setController(getController(players_.back()->getId())); // Activa el jugador que coincide con el "player_id" diff --git a/source/global_inputs.cpp b/source/global_inputs.cpp index f6fd009..0f99438 100644 --- a/source/global_inputs.cpp +++ b/source/global_inputs.cpp @@ -30,10 +30,10 @@ namespace globalInputs { // Si la notificación de salir no está activa, muestra la notificación #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); #else - Notifier::get()->show({lang::getText("NOTIFICATIONS_94"), std::string()}, -1, CODE); + Notifier::get()->show({lang::getText("[NOTIFICATIONS] 01"), std::string()}, -1, CODE); #endif } } @@ -45,11 +45,11 @@ namespace globalInputs if (Notifier::get()->checkCode(CODE)) { section::name = section::Name::INIT; - Notifier::get()->show({lang::getText("HELP_111")}); + Notifier::get()->show({lang::getText("[NOTIFICATIONS] 15")}); } 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() { 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 void 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 void 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 @@ -126,12 +126,12 @@ namespace globalInputs lang::loadFromFile(getLangFile(static_cast(options.game.language))); section::name = section::Name::INIT; 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 { 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() { 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 @@ -155,7 +155,7 @@ namespace globalInputs case section::Name::INSTRUCTIONS: { 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; break; } @@ -271,7 +271,7 @@ namespace globalInputs if (Input::get()->checkInput(InputAction::WINDOW_FULLSCREEN, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD)) { 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}); return; } @@ -281,7 +281,7 @@ namespace globalInputs { 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; } @@ -291,7 +291,7 @@ namespace globalInputs { 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; } diff --git a/source/hiscore_table.cpp b/source/hiscore_table.cpp index 9a2034a..636269a 100644 --- a/source/hiscore_table.cpp +++ b/source/hiscore_table.cpp @@ -221,7 +221,7 @@ void HiScoreTable::createSprites() const int first_line = (param.game.height - size) / 2; // Crea el sprite para el texto de cabecera - header_ = std::make_unique(header_text->writeDXToTexture(TEXT_COLOR, lang::getText("HIGHSCORE_TABLE_42"), -2, background_fade_color_.getInverse().lighten(25))); + header_ = std::make_unique(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); // Crea los sprites para las entradas en la tabla de puntuaciones diff --git a/source/instructions.cpp b/source/instructions.cpp index 8451b21..8be155b 100644 --- a/source/instructions.cpp +++ b/source/instructions.cpp @@ -141,11 +141,11 @@ void Instructions::fillTexture() // Calcula cual es el texto más largo de las descripciones de los items int lenght = 0; const std::array ITEM_DESCRIPTIONS = { - lang::getText("INSTRUCTIONS_17"), - lang::getText("INSTRUCTIONS_18"), - lang::getText("INSTRUCTIONS_19"), - lang::getText("INSTRUCTIONS_20"), - lang::getText("INSTRUCTIONS_21")}; + lang::getText("[INSTRUCTIONS] 07"), + lang::getText("[INSTRUCTIONS] 08"), + lang::getText("[INSTRUCTIONS] 09"), + lang::getText("[INSTRUCTIONS] 10"), + lang::getText("[INSTRUCTIONS] 11")}; for (const auto &desc : ITEM_DESCRIPTIONS) { const int l = text_->lenght(desc); @@ -154,24 +154,24 @@ void Instructions::fillTexture() const int ANCHOR_ITEM = (param.game.width - (lenght + desp_x)) / 2; // 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; - 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 * 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_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 * 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_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] 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] 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] 05"), 1, NO_COLOR, 1, SHADOW_TEXT_COLOR); // Escribe el texto de los objetos y sus puntos 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; - 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 * 1, lang::getText("INSTRUCTIONS_18"), 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 * 3, lang::getText("INSTRUCTIONS_20"), 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 * 0, lang::getText("[INSTRUCTIONS] 07"), 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] 09"), 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] 11"), SHADOW_TEXT_COLOR); // Deja el renderizador como estaba SDL_SetRenderTarget(renderer_, temp); @@ -369,6 +369,6 @@ void Instructions::updateBackbuffer() if (all_lines_off_screen_) { section::name = section::Name::TITLE; - section::options = section::Options::TITLE_1; + section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY; } } \ No newline at end of file diff --git a/source/intro.cpp b/source/intro.cpp index 310dbca..7dcab2b 100644 --- a/source/intro.cpp +++ b/source/intro.cpp @@ -396,39 +396,39 @@ void Intro::initTexts() } // 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); // 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); // 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); // 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); // UAAAAAAAAAAAAA!!! - texts_.at(4)->setCaption(lang::getText("INTRO_31")); + texts_.at(4)->setCaption(lang::getText("[INTRO] 5")); texts_.at(4)->setSpeed(1); // Espera un moment... - texts_.at(5)->setCaption(lang::getText("INTRO_32")); + texts_.at(5)->setCaption(lang::getText("[INTRO] 6")); texts_.at(5)->setSpeed(16); // 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); // MERDA DE MAQUINA! - texts_.at(7)->setCaption(lang::getText("INTRO_34")); + texts_.at(7)->setCaption(lang::getText("[INTRO] 8")); texts_.at(7)->setSpeed(3); // Blop... blop... blop... - texts_.at(8)->setCaption(lang::getText("INTRO_35")); + texts_.at(8)->setCaption(lang::getText("[INTRO] 9")); texts_.at(8)->setSpeed(20); for (auto &text : texts_) @@ -515,7 +515,7 @@ void Intro::updatePostState() { Audio::get()->stopMusic(); section::name = section::Name::TITLE; - section::options = section::Options::TITLE_1; + section::options = section::Options::[TITLE] PRESS_BUTTON_TO_PLAY; } break; diff --git a/source/resource.cpp b/source/resource.cpp index cc6046f..6cc3191 100644 --- a/source/resource.cpp +++ b/source/resource.cpp @@ -282,10 +282,10 @@ void Resource::createTextures() {"game_text_1000_points", "1.000"}, {"game_text_2500_points", "2.500"}, {"game_text_5000_points", "5.000"}, - {"game_text_powerup", lang::getText("GAME_TEXT_117")}, - {"game_text_one_hit", lang::getText("GAME_TEXT_118")}, - {"game_text_stop", lang::getText("GAME_TEXT_119")}, - {"game_text_1000000_points", lang::getText("GAMEPLAY_76")}}; + {"game_text_powerup", lang::getText("[GAME_TEXT] 4")}, + {"game_text_one_hit", lang::getText("[GAME_TEXT] 5")}, + {"game_text_stop", lang::getText("[GAME_TEXT] 6")}, + {"game_text_1000000_points", lang::getText("[GAME_TEXT] 8")}}; auto text = getText("04b_25"); for (const auto &s : strings) @@ -297,9 +297,9 @@ void Resource::createTextures() // Tamaño doble std::vector strings2X = { {"game_text_100000_points", "100.000"}, - {"game_text_get_ready", lang::getText("GAMEPLAY_75")}, - {"game_text_last_stage", lang::getText("GAME_TEXT_79")}, - {"game_text_congratulations", lang::getText("GAME_COMPLETION_TEXT_50")}, + {"game_text_get_ready", lang::getText("[GAME_TEXT] 7")}, + {"game_text_last_stage", lang::getText("[GAME_TEXT] 3")}, + {"game_text_congratulations", lang::getText("[GAME_TEXT] 1")}, {"game_text_game_over", "Game Over"}}; auto text2 = getText("04b_25_2x"); diff --git a/source/scoreboard.cpp b/source/scoreboard.cpp index 912bbed..451d67e 100644 --- a/source/scoreboard.cpp +++ b/source/scoreboard.cpp @@ -41,7 +41,7 @@ Scoreboard::Scoreboard() text_scoreboard_(Resource::get()->getText("8bithud")) { // Inicializa variables - for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) + for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i) { name_[i].clear(); record_name_[i].clear(); @@ -51,9 +51,9 @@ Scoreboard::Scoreboard() continue_counter_[i] = 0; } - panel_[SCOREBOARD_LEFT_PANEL].mode = ScoreboardMode::SCORE; - panel_[SCOREBOARD_RIGHT_PANEL].mode = ScoreboardMode::SCORE; - panel_[SCOREBOARD_CENTER_PANEL].mode = ScoreboardMode::STAGE_INFO; + panel_[[SCOREBOARD] LEFT_PANEL].mode = ScoreboardMode::SCORE; + panel_[[SCOREBOARD] RIGHT_PANEL].mode = ScoreboardMode::SCORE; + panel_[[SCOREBOARD] CENTER_PANEL].mode = ScoreboardMode::STAGE_INFO; // Recalcula las anclas de los elementos recalculateAnchors(); @@ -159,7 +159,7 @@ void Scoreboard::fillPanelTextures() auto temp = SDL_GetRenderTarget(renderer_); // 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 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])); // 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)); break; } @@ -185,13 +185,13 @@ void Scoreboard::fillPanelTextures() case ScoreboardMode::DEMO: { // 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 if (time_counter_ % 10 < 8) { - text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_103")); - text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_104")); + 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] 9")); } break; } @@ -199,13 +199,13 @@ void Scoreboard::fillPanelTextures() case ScoreboardMode::WAITING: { // 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 if (time_counter_ % 10 < 8) { - text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_103")); - text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_104")); + 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] 9")); } break; } @@ -213,13 +213,13 @@ void Scoreboard::fillPanelTextures() case ScoreboardMode::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 if (time_counter_ % 10 < 8) { - text_scoreboard_->writeCentered(slot4_3_.x, slot4_3_.y - 2, lang::getText("SCOREBOARD_114")); - text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y - 2, lang::getText("SCOREBOARD_115")); + 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] 13")); } break; } @@ -227,7 +227,7 @@ void Scoreboard::fillPanelTextures() case ScoreboardMode::STAGE_INFO: { // 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 power_meter_sprite_->setSpriteClip(0, 0, 40, 7); @@ -236,7 +236,7 @@ void Scoreboard::fillPanelTextures() power_meter_sprite_->render(); // 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_ + " - "; text_scoreboard_->writeCentered(slot4_4_.x, slot4_4_.y, name + updateScoreText(hi_score_)); break; @@ -249,7 +249,7 @@ void Scoreboard::fillPanelTextures() text_scoreboard_->writeCentered(slot4_2_.x, slot4_2_.y, updateScoreText(score_[i])); // 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])); break; } @@ -262,7 +262,7 @@ void Scoreboard::fillPanelTextures() // 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}; // 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])); // 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 */ // 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: { // 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 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])); } } @@ -342,7 +342,7 @@ void Scoreboard::fillBackgroundTexture() SDL_RenderClear(renderer_); // 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); } @@ -358,8 +358,8 @@ void Scoreboard::fillBackgroundTexture() void Scoreboard::recalculateAnchors() { // Recalcula la posición y el tamaño de los paneles - const float panel_width = (float)rect_.w / (float)SCOREBOARD_MAX_PANELS; - for (int i = 0; i < SCOREBOARD_MAX_PANELS; ++i) + const float panel_width = (float)rect_.w / (float)[SCOREBOARD] MAX_PANELS; + for (int i = 0; i < [SCOREBOARD] MAX_PANELS; ++i) { panel_[i].pos.x = roundf(panel_width * i); panel_[i].pos.y = 0; @@ -427,7 +427,7 @@ void Scoreboard::createPanelTextures() panel_texture_.clear(); // 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_SetTextureBlendMode(tex, SDL_BLENDMODE_BLEND); diff --git a/source/scoreboard.h b/source/scoreboard.h index 063bfa2..7581364 100644 --- a/source/scoreboard.h +++ b/source/scoreboard.h @@ -15,10 +15,10 @@ class Text; class Texture; // --- Defines --- -constexpr int SCOREBOARD_LEFT_PANEL = 0; -constexpr int SCOREBOARD_CENTER_PANEL = 1; -constexpr int SCOREBOARD_RIGHT_PANEL = 2; -constexpr int SCOREBOARD_MAX_PANELS = 3; +constexpr int [SCOREBOARD] LEFT_PANEL = 0; +constexpr int [SCOREBOARD] CENTER_PANEL = 1; +constexpr int [SCOREBOARD] RIGHT_PANEL = 2; +constexpr int [SCOREBOARD] MAX_PANELS = 3; // --- Enums --- enum class ScoreboardMode : int @@ -83,13 +83,13 @@ private: std::vector panel_texture_; // Texturas para dibujar cada panel // --- Variables de estado --- - std::string name_[SCOREBOARD_MAX_PANELS] = {}; // Nombre de cada jugador - 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 - int score_[SCOREBOARD_MAX_PANELS] = {}; // Puntuación de los jugadores - float mult_[SCOREBOARD_MAX_PANELS] = {}; // Multiplicador 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 + std::string name_[[SCOREBOARD] MAX_PANELS] = {}; // Nombre de cada jugador + 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 + int score_[[SCOREBOARD] MAX_PANELS] = {}; // Puntuación de los jugadores + float mult_[[SCOREBOARD] MAX_PANELS] = {}; // Multiplicador 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 int stage_ = 1; // Número de fase actual int hi_score_ = 0; // Máxima puntuación float power_ = 0; // Poder actual de la fase diff --git a/source/section.h b/source/section.h index c71545b..6efad2d 100644 --- a/source/section.h +++ b/source/section.h @@ -29,7 +29,7 @@ namespace section GAME_PLAY_1P, // Jugar 1 jugador GAME_PLAY_2P, // Jugar 2 jugadores 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 QUIT_WITH_KEYBOARD, // Salir con teclado QUIT_WITH_CONTROLLER, // Salir con mando diff --git a/source/service_menu.cpp b/source/service_menu.cpp index 250746f..ad0dddb 100644 --- a/source/service_menu.cpp +++ b/source/service_menu.cpp @@ -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_); } } - /* - 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); - } - */ } } diff --git a/source/title.cpp b/source/title.cpp index 0633ea8..33bc5df 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -46,7 +46,7 @@ Title::Title() Resource::get()->getTexture("smb2.gif")->setPalette(1); // 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); 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; @@ -112,7 +112,7 @@ void Title::render() // 'PRESS TO PLAY' 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' 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() { 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}); } @@ -302,7 +302,7 @@ void Title::showControllers() const size_t index = player_controller_index.at(i); 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; } } diff --git a/source/utils.cpp b/source/utils.cpp index 6072fb6..71169c8 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -20,9 +20,9 @@ const Color BG_COLOR = Color(0X27, 0X27, 0X36); const Color NO_COLOR = Color(0XFF, 0XFF, 0XFF); const Color SHADOW_TEXT_COLOR = Color(0X43, 0X43, 0X4F); const Color SEPARATOR_COLOR = Color(0X0D, 0X1A, 0X2B); -const Color SCOREBOARD_EASY_COLOR = Color(0X4B, 0X69, 0X2F); -const Color SCOREBOARD_NORMAL_COLOR = Color(0X2E, 0X3F, 0X47); -const Color SCOREBOARD_HARD_COLOR = Color(0X76, 0X42, 0X8A); +const Color [SCOREBOARD] EASY_COLOR = Color(0X4B, 0X69, 0X2F); +const Color [SCOREBOARD] NORMAL_COLOR = Color(0X2E, 0X3F, 0X47); +const Color [SCOREBOARD] HARD_COLOR = Color(0X76, 0X42, 0X8A); const Color FLASH_COLOR = Color(0XFF, 0XFF, 0XFF); const Color FADE_COLOR = Color(0X27, 0X27, 0X36); 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" 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 diff --git a/source/utils.h b/source/utils.h index 2986acf..b2a517a 100644 --- a/source/utils.h +++ b/source/utils.h @@ -115,9 +115,9 @@ extern const Color BG_COLOR; extern const Color NO_COLOR; extern const Color SHADOW_TEXT_COLOR; extern const Color SEPARATOR_COLOR; -extern const Color SCOREBOARD_EASY_COLOR; -extern const Color SCOREBOARD_NORMAL_COLOR; -extern const Color SCOREBOARD_HARD_COLOR; +extern const Color [SCOREBOARD] EASY_COLOR; +extern const Color [SCOREBOARD] NORMAL_COLOR; +extern const Color [SCOREBOARD] HARD_COLOR; extern const Color FLASH_COLOR; extern const Color FADE_COLOR; extern const Color ORANGE_COLOR;