diff --git a/Makefile b/Makefile index 2e5e458..d9a7545 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,7 @@ executable = coffee_crisis macos: mkdir -p bin - g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_macos - strip -s -R .comment -R .gnu.version bin/$(executable)_macos --strip-unneeded + g++ -std=c++11 -Wall -O2 source/*.cpp -o bin/$(executable)_macos -lSDL2 linux: mkdir -p bin g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux diff --git a/source/game.cpp b/source/game.cpp index 82697e1..e35e889 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -3136,62 +3136,6 @@ section_t Game::run() mSection.name = PROG_SECTION_QUIT; break; } - //else if ((mEventHandler->type == SDL_KEYDOWN) && (mEventHandler->key.repeat == 0)) - //{ - // if (mDebug.enabled) - // { - // switch (mEventHandler->key.keysym.scancode) - // { - // case SDL_SCANCODE_F: - // mDebug.enemySet--; - // if (mDebug.enemySet == 255) - // mDebug.enemySet = 0; - // break; -// - // case SDL_SCANCODE_R: - // mDebug.enemySet = std::min((int)++mDebug.enemySet, 9); - // break; -// - // case SDL_SCANCODE_T: - // mTicksSpeed *= 2; - // break; -// - // case SDL_SCANCODE_G: - // createNewBalloon(100, 0, BALLOON_1, BALLOON_VELX_POSITIVE, 1.0F, 0, mTextureBalloon); - // break; -// - // case SDL_SCANCODE_P: - // popAllBalloons(); - // break; -// - // case SDL_SCANCODE_Z: - // incBalloonSpeed(); - // break; -// - // case SDL_SCANCODE_X: - // decBalloonSpeed(); - // break; -// - // case SDL_SCANCODE_C: - // mDebug.gradB += 10; - // break; -// - // case SDL_SCANCODE_I: - // mPlayer[0]->setInvulnerable(true); - // mPlayer[0]->setInvulnerableCounter(65000); - // break; -// - // case SDL_SCANCODE_M: - // break; -// - // case SDL_SCANCODE_N: - // break; -// -// default: -// break; -// } -// } -// } } // Actualiza la lógica del juego