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

rogueviz:: added sokoban to highdim-demo

This commit is contained in:
Zeno Rogue 2021-09-30 11:35:09 +02:00
parent d2d9483065
commit 2b2eabd63a

View File

@ -4,6 +4,8 @@ namespace rogueviz {
namespace magic { void magic(int i); }
namespace crystal_sokoban { void run_sb(); }
namespace colorpicker {
int current_step;
@ -642,6 +644,19 @@ tour::slide *gen_high_demo() {
}
});
v.emplace_back(
slide{"3D Sokoban", 999, LEGAL::NONE,
"A three-dimensional Sokoban puzzle visualized using H2.\n\n"
"The puzzle is designed so that all three dimensions matter.\n\n"
"Press 'r' or Backspace to undo moves.",
[] (presmode mode) {
sync(mode, 0);
if(mode == pmStart) {
crystal_sokoban::run_sb();
}
}
});
callhooks(pres::hooks_build_rvtour, "highdim", high_slides);
pres::add_end(v);
return &high_slides[0];