Añadido todo.txt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user