new makefile
This commit is contained in:
3
Makefile
3
Makefile
@@ -2,8 +2,7 @@ executable = coffee_crisis
|
|||||||
|
|
||||||
macos:
|
macos:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_macos
|
g++ -std=c++11 -Wall -O2 source/*.cpp -o bin/$(executable)_macos -lSDL2
|
||||||
strip -s -R .comment -R .gnu.version bin/$(executable)_macos --strip-unneeded
|
|
||||||
linux:
|
linux:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux
|
g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux
|
||||||
|
|||||||
@@ -3136,62 +3136,6 @@ section_t Game::run()
|
|||||||
mSection.name = PROG_SECTION_QUIT;
|
mSection.name = PROG_SECTION_QUIT;
|
||||||
break;
|
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
|
// Actualiza la lógica del juego
|
||||||
|
|||||||
Reference in New Issue
Block a user