Añadido todo.txt

This commit is contained in:
2022-10-04 17:56:38 +02:00
parent 5fd1ffa865
commit 33b7c6082e
4 changed files with 25 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ Game::Game(int numPlayers, int currentStage, SDL_Renderer *renderer, Screen *scr
// Pasa variables
mDemo.enabled = demo;
mNumPlayers = numPlayers;
mCurrentStage = 4;//currentStage;
mCurrentStage = currentStage;
mLastStageReached = currentStage;
if (mNumPlayers == 1)
{
@@ -2695,7 +2695,7 @@ void Game::update()
// Comprueba el nivel de amenaza para ver si se han de crear nuevos enemigos
if (!mGameCompleted)
{
//updateMenace();
updateMenace();
}
// Actualiza la velocidad de los enemigos

View File

@@ -251,11 +251,7 @@ void MovingSprite::rotate()
if (enabled)
if (rotateEnabled)
{
if (rotateSpeed == 0)
{
incAngle(rotateAmount);
}
else if (counter % rotateSpeed == 0)
if (counter % rotateSpeed == 0)
{
incAngle(rotateAmount);
}
@@ -271,7 +267,14 @@ void MovingSprite::setRotate(bool value)
// Establece el valor de la variable
void MovingSprite::setRotateSpeed(int value)
{
rotateSpeed = value;
if (value < 1)
{
rotateSpeed = 1;
}
else
{
rotateSpeed = value;
}
}
// Establece el valor de la variable