1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

rv:: some fixes to the demos

This commit is contained in:
Zeno Rogue 2022-03-01 09:32:39 +01:00
parent 0429c8353a
commit bde3efbc35
4 changed files with 11 additions and 1 deletions

View File

@ -440,6 +440,10 @@ auto msc = arg::add3("-analogs", enable)
slide_url(mode, 'm', "HyperRogue page about projections", "http://www.roguetemple.com/z/hyper/models.php");
setCanvas(mode, '0');
if(mode == pmStart) {
slide_backup(mapeditor::drawplayer);
slide_backup(vid.use_smart_range);
slide_backup(vid.smart_range_detail);
slide_backup(vid.linequality);
enable();
start_game();
slide_backup(cycle_models);

View File

@ -510,6 +510,7 @@ auto hooks =
if(twitter != "")
slide_url(mode, 't', "Twitter link", twitter);
slide_action(mode, 'r', "run this visualization", loader);
slidecommand = "portal options";
if(mode == tour::pmKey) pushScreen(intra::show_portals);
}
});

View File

@ -1474,6 +1474,7 @@ void portal_slideshow(tour::ss::slideshow_callback cb) {
loop = 2;
});
slidecommand = "notknot options";
if(mode == tour::pmKey) pushScreen(show);
}});
};

View File

@ -435,6 +435,7 @@ void choose_projection() {
cmode = sm::SIDE | sm::MAYDARK;
gamescreen(0);
dialog::init(XLAT("choose projection"), 0xFFFFFFFF, 150, 0);
dynamicval<int> di(index);
for(int i=0; i<8; i++) {
index = i;
dynamicval<eModel> md(pmodel, pmodel);
@ -520,7 +521,7 @@ auto msc =
"We can also project a sphere to a sphere of different curvature. For example, what about the azimuthal equidistant projection from Earth to Moon? "
"This projection correctly maps the angles and distances from a chosen point at Earth. "
"Press 'o' to use the place on Earth you are in as the chosen point, try other projections, or change the other settings!"
"Press '5' to use the place on Earth you are in as the chosen point, try other projections, or change the other settings!"
,
[] (presmode mode) {
slide_url(mode, 't', "Twitter link (with description)", "https://twitter.com/ZenoRogue/status/1339946298460483589");
@ -533,9 +534,12 @@ auto msc =
slide_backup(pmodel, mdDisk);
slide_backup(pconf.scale, 1000);
slide_backup(pconf.alpha, 1000);
slide_backup(mapeditor::drawplayer, false);
start_game();
slide_backup(max_alpha, 192);
}
slidecommand = "options";
if(mode == tour::pmKey) pushScreen(show);
}});
});