mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
-noplayer and -pattern command line options
This commit is contained in:
parent
d6376e1ddf
commit
3b7ab293ba
@ -75,6 +75,23 @@ int arg::readCommon() {
|
|||||||
if(args()[1] == 0) mapeditor::whichCanvas = args()[0];
|
if(args()[1] == 0) mapeditor::whichCanvas = args()[0];
|
||||||
else mapeditor::canvasback = strtol(args(), NULL, 16);
|
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")) {
|
else if(argis("-back")) {
|
||||||
shift(); backcolor = strtol(args(), NULL, 16);
|
shift(); backcolor = strtol(args(), NULL, 16);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user