Modificado el texto al cambiar de pantalla. Quitado texto no usado
This commit is contained in:
@@ -75,15 +75,15 @@ Temps detes:
|
|||||||
## 37 - TEXTOS DEL JUEGO
|
## 37 - TEXTOS DEL JUEGO
|
||||||
D E M O
|
D E M O
|
||||||
## 38 - TEXTOS DEL JUEGO
|
## 38 - TEXTOS DEL JUEGO
|
||||||
Pantalla
|
fases mes!
|
||||||
## 39 - MARCADOR
|
## 39 -
|
||||||
PUNTS
|
|
||||||
## 40 - MARCADOR
|
## 40 -
|
||||||
MAX.PUNT.
|
|
||||||
## 41 - MARCADOR
|
## 41 -
|
||||||
MULT
|
|
||||||
## 42 - MARCADOR
|
## 42 -
|
||||||
PANTALLA
|
|
||||||
## 43 - PANTALLA DE GAME OVER
|
## 43 - PANTALLA DE GAME OVER
|
||||||
FI DEL JOC
|
FI DEL JOC
|
||||||
## 44 - PANTALLA DE GAME OVER
|
## 44 - PANTALLA DE GAME OVER
|
||||||
@@ -126,10 +126,10 @@ SINC. VERTICAL
|
|||||||
CONTROLS DEL JUGADOR 1
|
CONTROLS DEL JUGADOR 1
|
||||||
## 63 - MENU DE OPCIONES
|
## 63 - MENU DE OPCIONES
|
||||||
CONTROLS DEL JUGADOR 2
|
CONTROLS DEL JUGADOR 2
|
||||||
## 64 - MENU DE OPCIONES
|
## 64 -
|
||||||
TECLAT
|
|
||||||
## 65 - MENU DE OPCIONES
|
## 65 -
|
||||||
MANDO
|
|
||||||
## 66 - MENU DE OPCIONES
|
## 66 - MENU DE OPCIONES
|
||||||
FACIL
|
FACIL
|
||||||
## 67 - MENU DE OPCIONES
|
## 67 - MENU DE OPCIONES
|
||||||
@@ -156,3 +156,5 @@ Endavant!
|
|||||||
PUNTS J1:
|
PUNTS J1:
|
||||||
## 78 - PANTALLA DE GAME OVER
|
## 78 - PANTALLA DE GAME OVER
|
||||||
PUNTS J2:
|
PUNTS J2:
|
||||||
|
## 79 - TEXTOS DEL JUEGO
|
||||||
|
Ultima fase!
|
||||||
@@ -75,15 +75,15 @@ Time stopped:
|
|||||||
## 37 - TEXTOS DEL JUEGO
|
## 37 - TEXTOS DEL JUEGO
|
||||||
D E M O
|
D E M O
|
||||||
## 38 - TEXTOS DEL JUEGO
|
## 38 - TEXTOS DEL JUEGO
|
||||||
Stage
|
stages left!
|
||||||
## 39 - MARCADOR
|
## 39 -
|
||||||
SCORE
|
|
||||||
## 40 - MARCADOR
|
## 40 -
|
||||||
HI-SCORE
|
|
||||||
## 41 - MARCADOR
|
## 41 -
|
||||||
MULT
|
|
||||||
## 42 - MARCADOR
|
## 42 -
|
||||||
STAGE
|
|
||||||
## 43 - PANTALLA DE GAME OVER
|
## 43 - PANTALLA DE GAME OVER
|
||||||
GAME OVER
|
GAME OVER
|
||||||
## 44 - PANTALLA DE GAME OVER
|
## 44 - PANTALLA DE GAME OVER
|
||||||
@@ -126,10 +126,10 @@ VSYNC
|
|||||||
PLAYER 1 CONTROLS
|
PLAYER 1 CONTROLS
|
||||||
## 63 - MENU DE OPCIONES
|
## 63 - MENU DE OPCIONES
|
||||||
PLAYER 2 CONTROLS
|
PLAYER 2 CONTROLS
|
||||||
## 64 - MENU DE OPCIONES
|
## 64 -
|
||||||
KEYBOARD
|
|
||||||
## 65 - MENU DE OPCIONES
|
## 65 -
|
||||||
GAME CONTROLLER
|
|
||||||
## 66 - MENU DE OPCIONES
|
## 66 - MENU DE OPCIONES
|
||||||
EASY
|
EASY
|
||||||
## 67 - MENU DE OPCIONES
|
## 67 - MENU DE OPCIONES
|
||||||
@@ -156,3 +156,5 @@ Get Ready!
|
|||||||
PLAYER1 SCORE:
|
PLAYER1 SCORE:
|
||||||
## 78 - PANTALLA DE GAME OVER
|
## 78 - PANTALLA DE GAME OVER
|
||||||
PLAYER2 SCORE:
|
PLAYER2 SCORE:
|
||||||
|
## 79 - TEXTOS DEL JUEGO
|
||||||
|
Last stage!
|
||||||
@@ -75,15 +75,15 @@ Tiempo:
|
|||||||
## 37 - TEXTOS DEL JUEGO
|
## 37 - TEXTOS DEL JUEGO
|
||||||
D E M O
|
D E M O
|
||||||
## 38 - TEXTOS DEL JUEGO
|
## 38 - TEXTOS DEL JUEGO
|
||||||
Fase
|
fases mas!
|
||||||
## 39 - MARCADOR
|
## 39 -
|
||||||
PUNTOS
|
|
||||||
## 40 - MARCADOR
|
## 40 -
|
||||||
MAX.PUNT.
|
|
||||||
## 41 - MARCADOR
|
## 41 -
|
||||||
MULT
|
|
||||||
## 42 - MARCADOR
|
## 42 -
|
||||||
FASE
|
|
||||||
## 43 - PANTALLA DE GAME OVER
|
## 43 - PANTALLA DE GAME OVER
|
||||||
FIN DE JUEGO
|
FIN DE JUEGO
|
||||||
## 44 - PANTALLA DE GAME OVER
|
## 44 - PANTALLA DE GAME OVER
|
||||||
@@ -113,7 +113,7 @@ mult
|
|||||||
## 56 - MARCADOR
|
## 56 - MARCADOR
|
||||||
max. puntuacion
|
max. puntuacion
|
||||||
## 57 - MARCADOR
|
## 57 - MARCADOR
|
||||||
fase
|
FASE
|
||||||
## 58 - MENU DE OPCIONES
|
## 58 - MENU DE OPCIONES
|
||||||
MODO DE VISUALIZACION
|
MODO DE VISUALIZACION
|
||||||
## 59 - MENU DE OPCIONES
|
## 59 - MENU DE OPCIONES
|
||||||
@@ -126,10 +126,10 @@ SINC. VERTICAL
|
|||||||
CONTROLES DEL JUGADOR 1
|
CONTROLES DEL JUGADOR 1
|
||||||
## 63 - MENU DE OPCIONES
|
## 63 - MENU DE OPCIONES
|
||||||
CONTROLES DEL JUGADOR 2
|
CONTROLES DEL JUGADOR 2
|
||||||
## 64 - MENU DE OPCIONES
|
## 64 -
|
||||||
TECLADO
|
|
||||||
## 65 - MENU DE OPCIONES
|
## 65 -
|
||||||
MANDO
|
|
||||||
## 66 - MENU DE OPCIONES
|
## 66 - MENU DE OPCIONES
|
||||||
FACIL
|
FACIL
|
||||||
## 67 - MENU DE OPCIONES
|
## 67 - MENU DE OPCIONES
|
||||||
@@ -156,3 +156,5 @@ Adelante!
|
|||||||
PUNTUACION J1:
|
PUNTUACION J1:
|
||||||
## 78 - PANTALLA DE GAME OVER
|
## 78 - PANTALLA DE GAME OVER
|
||||||
PUNTUACION J2:
|
PUNTUACION J2:
|
||||||
|
## 79 - TEXTOS DEL JUEGO
|
||||||
|
Ultima fase!
|
||||||
@@ -1541,7 +1541,7 @@ void Game::updateHiScore()
|
|||||||
// Transforma un valor numérico en una cadena de 6 cifras
|
// Transforma un valor numérico en una cadena de 6 cifras
|
||||||
std::string Game::updateScoreText(Uint32 num)
|
std::string Game::updateScoreText(Uint32 num)
|
||||||
{
|
{
|
||||||
//return (std::to_string(num));
|
// return (std::to_string(num));
|
||||||
|
|
||||||
if ((num >= 0) && (num <= 9))
|
if ((num >= 0) && (num <= 9))
|
||||||
{
|
{
|
||||||
@@ -2061,7 +2061,7 @@ void Game::popAllBalloons()
|
|||||||
void Game::destroyAllBalloons()
|
void Game::destroyAllBalloons()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAX_BALLOONS; i++)
|
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()))
|
if ((mBalloon[i]->isEnabled()) && (!mBalloon[i]->isPopping()))
|
||||||
destroyBalloon(i);
|
destroyBalloon(i);
|
||||||
|
|
||||||
@@ -2927,35 +2927,56 @@ void Game::renderMessages()
|
|||||||
if (mTimeStopped)
|
if (mTimeStopped)
|
||||||
{
|
{
|
||||||
if ((mTimeStoppedCounter > 100) || (mTimeStoppedCounter % 10 > 4))
|
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);
|
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 > 100)
|
||||||
{
|
{
|
||||||
if (mTimeStoppedCounter % 30 == 0)
|
if (mTimeStoppedCounter % 30 == 0)
|
||||||
|
{
|
||||||
JA_PlaySound(mSoundClock, false);
|
JA_PlaySound(mSoundClock, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mTimeStoppedCounter % 15 == 0)
|
if (mTimeStoppedCounter % 15 == 0)
|
||||||
|
{
|
||||||
JA_PlaySound(mSoundClock, false);
|
JA_PlaySound(mSoundClock, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// D E M O
|
// D E M O
|
||||||
if (mDemo.enabled)
|
if (mDemo.enabled)
|
||||||
|
{
|
||||||
if (mDemo.counter % 30 > 14)
|
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);
|
mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, mLang->getText(37), 0, noColor, 2, shdwTxtColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// STAGE NUMBER
|
// STAGE NUMBER
|
||||||
if (mStageBitmapCounter < STAGE_COUNTER)
|
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)
|
if (!mGameCompleted)
|
||||||
{
|
{ // Escribe el numero de fases restantes
|
||||||
mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter], text, -2, noColor, 2, shdwTxtColor);
|
mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter], text, -2, noColor, 2, shdwTxtColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // Texto de juego completado
|
{ // Escribe el texto de juego completado
|
||||||
text = mLang->getText(50);
|
text = mLang->getText(50);
|
||||||
mTextNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, mStageBitmapPath[mStageBitmapCounter], text, -2, noColor, 1, shdwTxtColor);
|
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);
|
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++)
|
for (int n = 0; n < 8; n++)
|
||||||
{
|
{
|
||||||
// Limpia la pantalla
|
// Limpia la pantalla
|
||||||
//SDL_SetRenderDrawColor(mRenderer, 0x00, 0x00, 0x00, 0xFF);
|
// SDL_SetRenderDrawColor(mRenderer, 0x00, 0x00, 0x00, 0xFF);
|
||||||
//SDL_RenderClear(mRenderer);
|
// SDL_RenderClear(mRenderer);
|
||||||
|
|
||||||
// Prepara para empezar a dibujar en la textura de juego
|
// Prepara para empezar a dibujar en la textura de juego
|
||||||
mScreen->start();
|
mScreen->start();
|
||||||
@@ -3023,7 +3044,7 @@ void Game::shakeScreen()
|
|||||||
renderScoreBoard();
|
renderScoreBoard();
|
||||||
|
|
||||||
// Actualiza la pantalla
|
// Actualiza la pantalla
|
||||||
//SDL_RenderPresent(mRenderer);
|
// SDL_RenderPresent(mRenderer);
|
||||||
|
|
||||||
// Vuelca el contenido del renderizador en pantalla
|
// Vuelca el contenido del renderizador en pantalla
|
||||||
mScreen->blit();
|
mScreen->blit();
|
||||||
|
|||||||
Reference in New Issue
Block a user