1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +00:00

using new setCanvas function in RogueViz presentations

This commit is contained in:
Zeno Rogue
2024-06-16 16:16:56 +02:00
parent e76e32e214
commit 263ee56427
22 changed files with 77 additions and 113 deletions

View File

@@ -131,16 +131,14 @@ auto hypcity_ah = arg::add3("-hypcity", enable)
if(mode == pmStart && dim == 2 && !vid.always3) {
geom3::switch_fpp();
}
setCanvas(mode, '0');
if(mode == pmStart) {
setWhiteCanvas(mode, [setter, dim] {
slide_backup(canvas_default_wall, waInvisibleFloor);
if(dim == 2) slide_backup(vid.camera, 0);
if(dim == 2) slide_backup(vid.depth, 0);
slide_backup(context_fog, false);
setter();
start_game();
enable();
}
});
if(mode == pmStart) enable();
non_game_slide_scroll(mode);
}});
};