mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
racing and Thurston racing as start menu options
This commit is contained in:
parent
5735645c23
commit
566a323eb4
38
menus.cpp
38
menus.cpp
@ -730,6 +730,18 @@ EX void showStartMenu() {
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
case 8:
|
||||||
|
dialog::addBreak(100);
|
||||||
|
dialog::addBigItem(XLAT("Racing"), 'r'-96);
|
||||||
|
dialog::addInfo(XLAT("how fast can you reach the end?"));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 9:
|
||||||
|
dialog::addBreak(100);
|
||||||
|
dialog::addBigItem(XLAT("Racing in Thurston geometries"), 't'-96);
|
||||||
|
dialog::addInfo(XLAT("race through a maze in exotic 3D geometry!"));
|
||||||
|
break;
|
||||||
|
|
||||||
case 20:
|
case 20:
|
||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
dialog::addBigItem(XLAT1("Halloween"), 'Z');
|
dialog::addBigItem(XLAT1("Halloween"), 'Z');
|
||||||
@ -840,6 +852,32 @@ EX void showStartMenu() {
|
|||||||
vid.scale = 998;
|
vid.scale = 998;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(uni == 'r' - 96) {
|
||||||
|
popScreenAll();
|
||||||
|
resetModes();
|
||||||
|
stop_game();
|
||||||
|
switch_game_mode(rg::racing);
|
||||||
|
racing::track_code = "OFFICIAL";
|
||||||
|
specialland = racing::race_lands[rand() % isize(racing::race_lands)];
|
||||||
|
start_game();
|
||||||
|
pmodel = mdBand;
|
||||||
|
models::model_orientation = racing::race_angle;
|
||||||
|
racing::race_advance = 1;
|
||||||
|
vid.yshift = 0;
|
||||||
|
vid.camera_angle = 0;
|
||||||
|
vid.xposition = 0;
|
||||||
|
vid.yposition = 0;
|
||||||
|
vid.scale = 1;
|
||||||
|
vid.use_smart_range = 1;
|
||||||
|
vid.smart_range_detail = 3;
|
||||||
|
}
|
||||||
|
else if(uni == 't' - 96) {
|
||||||
|
stop_game();
|
||||||
|
resetModes();
|
||||||
|
start_game();
|
||||||
|
pushScreen(showStartMenu);
|
||||||
|
pushScreen(racing::thurston_racing);
|
||||||
|
}
|
||||||
#if CAP_TOUR
|
#if CAP_TOUR
|
||||||
else if(uni == 't') {
|
else if(uni == 't') {
|
||||||
popScreenAll();
|
popScreenAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user