1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-06 01:40:15 +00:00

multi:: split-screen mode is now an option

This commit is contained in:
Zeno Rogue
2022-03-27 09:02:06 +02:00
parent bcc7c9c646
commit 08cfed6658
2 changed files with 7 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ EX namespace multi {
EX config scfg;
EX charstyle scs[MAXPLAYER];
EX bool split_screen;
EX int players = 1;
EX cellwalker player[MAXPLAYER];
EX vector<int> revive_queue; // queue for revival
@@ -519,6 +521,7 @@ EX void showConfigureMultiplayer() {
dialog::addSelItem(XLAT("keyboard & joysticks"), "", 'k');
dialog::add_action(multi::configure);
add_edit(split_screen);
}
else dialog::addBreak(200);
@@ -690,6 +693,8 @@ EX void initConfig() {
#if CAP_CONFIG
addsaver(multi::players, "mode-number of players");
param_b(multi::split_screen, "splitscreen", false)
->editable("split screen mode", 's');
addsaver(alwaysuse, "use configured keys");
// unfortunately we cannot use key names here because SDL is not yet initialized
for(int i=0; i<512; i++)