Treballant en el final del joc
This commit is contained in:
@@ -95,13 +95,9 @@ Director::Director(int argc, const char *argv[])
|
||||
{
|
||||
auto manager = std::make_unique<ManageHiScoreTable>(options.game.hi_score_table);
|
||||
if (overrides.clear_hi_score_table)
|
||||
{
|
||||
manager->clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
manager->loadFromFile(Asset::get()->get("score.bin"));
|
||||
}
|
||||
}
|
||||
|
||||
// Inicializa SDL
|
||||
@@ -629,7 +625,11 @@ void Director::runTitle()
|
||||
void Director::runGame()
|
||||
{
|
||||
const auto player_id = section::options == section::Options::GAME_PLAY_1P ? 1 : 2;
|
||||
#ifdef DEBUG
|
||||
constexpr auto current_stage = 9;
|
||||
#else
|
||||
constexpr auto current_stage = 0;
|
||||
#endif
|
||||
auto game = std::make_unique<Game>(player_id, current_stage, GAME_MODE_DEMO_OFF);
|
||||
game->run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user