diff --git a/data/config/score.bin b/data/config/score.bin index b88b120..faf01e4 100644 Binary files a/data/config/score.bin and b/data/config/score.bin differ diff --git a/source/game.cpp b/source/game.cpp index ffbbfe0..515d4ca 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -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 diff --git a/source/movingsprite.cpp b/source/movingsprite.cpp index 4588c40..254f3ae 100644 --- a/source/movingsprite.cpp +++ b/source/movingsprite.cpp @@ -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 diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..644e5d6 --- /dev/null +++ b/todo.txt @@ -0,0 +1,14 @@ +los items se quedan pegados en el techo +la maquina de cafe no toca el suelo +las bolas verdes nacen naranja al explotarlas +falta el aura de superguerrero al pillar la maquina de cafe +la powerball deja la mascara al explotarlas +los menus de pausa y game over falta poner bien los textos +cuando continuas la partida sigues muerto +poder elegir el personaje para jugar +arreglar los smart sprites de muerte y de perder el cafe +arreglar los items de las instrucciones +que cicle la musica en el titulo, demo, instrucciones +que guarde el progreso del juego +que aumente la velocidad de las nubes conforme avanzas +retocar un poco la distancia entre los cambios de color del cielo, se llega al oscuro muy pronto \ No newline at end of file