diff --git a/media/lang/ba_BA.txt b/media/lang/ba_BA.txt index af96a2a..ac7b3f6 100644 --- a/media/lang/ba_BA.txt +++ b/media/lang/ba_BA.txt @@ -75,15 +75,15 @@ Temps detes: ## 37 - TEXTOS DEL JUEGO D E M O ## 38 - TEXTOS DEL JUEGO -Pantalla -## 39 - MARCADOR -PUNTS -## 40 - MARCADOR -MAX.PUNT. -## 41 - MARCADOR -MULT -## 42 - MARCADOR -PANTALLA + fases mes! +## 39 - + +## 40 - + +## 41 - + +## 42 - + ## 43 - PANTALLA DE GAME OVER FI DEL JOC ## 44 - PANTALLA DE GAME OVER @@ -126,10 +126,10 @@ SINC. VERTICAL CONTROLS DEL JUGADOR 1 ## 63 - MENU DE OPCIONES CONTROLS DEL JUGADOR 2 -## 64 - MENU DE OPCIONES -TECLAT -## 65 - MENU DE OPCIONES -MANDO +## 64 - + +## 65 - + ## 66 - MENU DE OPCIONES FACIL ## 67 - MENU DE OPCIONES @@ -155,4 +155,6 @@ Endavant! ## 77 - PANTALLA DE GAME OVER PUNTS J1: ## 78 - PANTALLA DE GAME OVER -PUNTS J2: \ No newline at end of file +PUNTS J2: +## 79 - TEXTOS DEL JUEGO +Ultima fase! \ No newline at end of file diff --git a/media/lang/en_UK.txt b/media/lang/en_UK.txt index d8e3ebc..95183d3 100644 --- a/media/lang/en_UK.txt +++ b/media/lang/en_UK.txt @@ -75,15 +75,15 @@ Time stopped: ## 37 - TEXTOS DEL JUEGO D E M O ## 38 - TEXTOS DEL JUEGO -Stage -## 39 - MARCADOR -SCORE -## 40 - MARCADOR -HI-SCORE -## 41 - MARCADOR -MULT -## 42 - MARCADOR -STAGE + stages left! +## 39 - + +## 40 - + +## 41 - + +## 42 - + ## 43 - PANTALLA DE GAME OVER GAME OVER ## 44 - PANTALLA DE GAME OVER @@ -126,10 +126,10 @@ VSYNC PLAYER 1 CONTROLS ## 63 - MENU DE OPCIONES PLAYER 2 CONTROLS -## 64 - MENU DE OPCIONES -KEYBOARD -## 65 - MENU DE OPCIONES -GAME CONTROLLER +## 64 - + +## 65 - + ## 66 - MENU DE OPCIONES EASY ## 67 - MENU DE OPCIONES @@ -155,4 +155,6 @@ Get Ready! ## 77 - PANTALLA DE GAME OVER PLAYER1 SCORE: ## 78 - PANTALLA DE GAME OVER -PLAYER2 SCORE: \ No newline at end of file +PLAYER2 SCORE: +## 79 - TEXTOS DEL JUEGO +Last stage! \ No newline at end of file diff --git a/media/lang/es_ES.txt b/media/lang/es_ES.txt index 6c21712..60df4a1 100644 --- a/media/lang/es_ES.txt +++ b/media/lang/es_ES.txt @@ -75,15 +75,15 @@ Tiempo: ## 37 - TEXTOS DEL JUEGO D E M O ## 38 - TEXTOS DEL JUEGO -Fase -## 39 - MARCADOR -PUNTOS -## 40 - MARCADOR -MAX.PUNT. -## 41 - MARCADOR -MULT -## 42 - MARCADOR -FASE + fases mas! +## 39 - + +## 40 - + +## 41 - + +## 42 - + ## 43 - PANTALLA DE GAME OVER FIN DE JUEGO ## 44 - PANTALLA DE GAME OVER @@ -113,7 +113,7 @@ mult ## 56 - MARCADOR max. puntuacion ## 57 - MARCADOR -fase +FASE ## 58 - MENU DE OPCIONES MODO DE VISUALIZACION ## 59 - MENU DE OPCIONES @@ -126,10 +126,10 @@ SINC. VERTICAL CONTROLES DEL JUGADOR 1 ## 63 - MENU DE OPCIONES CONTROLES DEL JUGADOR 2 -## 64 - MENU DE OPCIONES -TECLADO -## 65 - MENU DE OPCIONES -MANDO +## 64 - + +## 65 - + ## 66 - MENU DE OPCIONES FACIL ## 67 - MENU DE OPCIONES @@ -155,4 +155,6 @@ Adelante! ## 77 - PANTALLA DE GAME OVER PUNTUACION J1: ## 78 - PANTALLA DE GAME OVER -PUNTUACION J2: \ No newline at end of file +PUNTUACION J2: +## 79 - TEXTOS DEL JUEGO +Ultima fase! \ No newline at end of file diff --git a/source/game.cpp b/source/game.cpp index 7fdf0e7..f8a46f5 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1541,7 +1541,7 @@ void Game::updateHiScore() // Transforma un valor numérico en una cadena de 6 cifras std::string Game::updateScoreText(Uint32 num) { - //return (std::to_string(num)); + // return (std::to_string(num)); if ((num >= 0) && (num <= 9)) { @@ -2061,7 +2061,7 @@ void Game::popAllBalloons() void Game::destroyAllBalloons() { for (int i = 0; i < MAX_BALLOONS; i++) - //if ((mBalloon[i]->isEnabled()) && (!mBalloon[i]->isPopping()) && (!mBalloon[i]->isBeingCreated())) + // if ((mBalloon[i]->isEnabled()) && (!mBalloon[i]->isPopping()) && (!mBalloon[i]->isBeingCreated())) if ((mBalloon[i]->isEnabled()) && (!mBalloon[i]->isPopping())) destroyBalloon(i); @@ -2927,35 +2927,56 @@ void Game::renderMessages() if (mTimeStopped) { if ((mTimeStoppedCounter > 100) || (mTimeStoppedCounter % 10 > 4)) + { mTextNokia2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, mLang->getText(36) + std::to_string(mTimeStoppedCounter / 10), -1, noColor, 1, shdwTxtColor); + } if (mTimeStoppedCounter > 100) { if (mTimeStoppedCounter % 30 == 0) + { JA_PlaySound(mSoundClock, false); + } } else { if (mTimeStoppedCounter % 15 == 0) + { JA_PlaySound(mSoundClock, false); + } } } // D E M O if (mDemo.enabled) + { if (mDemo.counter % 30 > 14) + { mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, mLang->getText(37), 0, noColor, 2, shdwTxtColor); + } + } // STAGE NUMBER if (mStageBitmapCounter < STAGE_COUNTER) { - std::string text = mLang->getText(38) + std::to_string(mStage[mCurrentStage].number); + const int stage = mStage[mCurrentStage].number; + std::string text; + + if (stage == 10) + { // Ultima fase + text = mLang->getText(79); + } + else + { // X fases restantes + text = std::to_string(11 - mStage[mCurrentStage].number) + mLang->getText(38); + } + if (!mGameCompleted) - { + { // Escribe el numero de fases restantes mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter], text, -2, noColor, 2, shdwTxtColor); } else - { // Texto de juego completado + { // Escribe el texto de juego completado text = mLang->getText(50); mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter], text, -2, noColor, 1, shdwTxtColor); mTextNokia2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter] + mTextNokiaBig2->getCharacterWidth() + 2, mLang->getText(76), -1, noColor, 1, shdwTxtColor); @@ -2990,8 +3011,8 @@ void Game::shakeScreen() for (int n = 0; n < 8; n++) { // Limpia la pantalla - //SDL_SetRenderDrawColor(mRenderer, 0x00, 0x00, 0x00, 0xFF); - //SDL_RenderClear(mRenderer); + // SDL_SetRenderDrawColor(mRenderer, 0x00, 0x00, 0x00, 0xFF); + // SDL_RenderClear(mRenderer); // Prepara para empezar a dibujar en la textura de juego mScreen->start(); @@ -3023,8 +3044,8 @@ void Game::shakeScreen() renderScoreBoard(); // Actualiza la pantalla - //SDL_RenderPresent(mRenderer); - + // SDL_RenderPresent(mRenderer); + // Vuelca el contenido del renderizador en pantalla mScreen->blit(); SDL_Delay(50);