1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 19:10:35 +00:00

-noplayer and -pattern command line options

This commit is contained in:
Zeno Rogue 2017-12-03 12:59:12 +01:00
parent d6376e1ddf
commit 3b7ab293ba

View File

@ -75,6 +75,23 @@ int arg::readCommon() {
if(args()[1] == 0) mapeditor::whichCanvas = args()[0];
else mapeditor::canvasback = strtol(args(), NULL, 16);
}
else if(argis("-noplayer"))
mapeditor::drawplayer = !mapeditor::drawplayer;
else if(argis("-pattern")) {
PHASE(3);
shift();
char *c = args();
using namespace mapeditor;
sym01 = sym02 = sym03 = symRotation = false;
while(*c) {
if(*c == '1') sym01 = true;
else if(*c == '2') sym02 = true;
else if(*c == '3') sym03 = true;
else if(*c == '0') symRotation = true;
else whichPattern = *c;
c++;
}
}
else if(argis("-back")) {
shift(); backcolor = strtol(args(), NULL, 16);
}