mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
rogueviz:: added sokoban to highdim-demo
This commit is contained in:
parent
d2d9483065
commit
2b2eabd63a
@ -4,6 +4,8 @@ namespace rogueviz {
|
|||||||
|
|
||||||
namespace magic { void magic(int i); }
|
namespace magic { void magic(int i); }
|
||||||
|
|
||||||
|
namespace crystal_sokoban { void run_sb(); }
|
||||||
|
|
||||||
namespace colorpicker {
|
namespace colorpicker {
|
||||||
|
|
||||||
int current_step;
|
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);
|
callhooks(pres::hooks_build_rvtour, "highdim", high_slides);
|
||||||
pres::add_end(v);
|
pres::add_end(v);
|
||||||
return &high_slides[0];
|
return &high_slides[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user