1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 12:27:40 +00:00

ads:: split initialization functions into multiple, so that they are available in presentations

This commit is contained in:
Zeno Rogue
2024-06-25 17:11:06 +02:00
parent f6ce5a81e4
commit a8ade534b9
4 changed files with 49 additions and 13 deletions

View File

@@ -226,13 +226,13 @@ void pick_the_game() {
dialog::addBreak(200);
dialog::addBigItem("anti-de Sitter space", '1');
dialog::add_action([] { popScreen(); run_ads_game_std(); clearMessages(); });
dialog::add_action([] { popScreen(); run_ads_game_std(); add_ads_cleanup(); clearMessages(); });
dialog::addInfo(XLAT("shoot asteroids, mine resources, collect gold"));
dialog::addBreak(100);
dialog::addBigItem("de Sitter space", '2');
dialog::add_action([] { popScreen(); run_ds_game_std(); clearMessages(); });
dialog::add_action([] { popScreen(); run_ds_game_std(); add_ds_cleanup(); clearMessages(); });
dialog::addInfo(XLAT("avoid energy balls, but do not let the main star run away!"));
dialog::addBreak(100);