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

@@ -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