Question re: enter/exit coordinates
andyl opened this issue · comments
When I use theseus with png masks (using "theseus -m .png -f png"), it generates a maze with an entrance on the top-left, but no exit.
The mask i'm using is a text string - not a regular geometric shape.
I tried specifying exit coordinates in various ways (using -X [c1, c2]), but couldn't get it working.
Are the x/y coordinates in pixels? Cell squares? Something else?
tx, Andy
Update: theseus does generate a maze exit - I just couldn't find it.
But still curious how to change the exit location.
-X should work to change the exit location. Note that if you want the exit to show as a passage outside the maze (rather than being some point inside the maze), you need to specify it as a point just outside the maze. For instance, the default exit point is [width,height-1], which is 1 cell to the right of the rightmost cell on the bottom.
When specifying it on the command-line, just give it as two comma-delimited numbers, without parantheses or square brackets. If that isn't working for you, let me know the specifics of what you're trying and I'll look into it.
OK thanks - I get it now - each pixel in the PNG mask corresponds to a cell in the maze. (at least in the ortho view) I was able to get the exit right where I want it - tx.
Yes, correct, sorry I misunderstood that bit of your question. Regardless of the maze type (ortho, delta, etc.) a pixel in the mask always corresponds one-to-one with a cell in the maze. Glad you got it working!