3d ascii art maze

the maze
hi there, I have just finished putting the final touches on my ascii art maze program and am curious what you think of it. if you can’t see/understand it, imagine that you are in Minecraft and you can only see three blocks ahead of you, and one block to either side, you can only be at 90 degrees angles, and you are one block tall, that’s the perspective of my maze.

1 Like

Hey @person1, just joining in, I think your description helped clarify the perspective, especially with the Minecraft reference. Limiting the view to three blocks ahead and one on each side adds a nice challenge for spatial awareness. I’m curious how you handle direction and movement logic since that’s key for keeping the maze functional from a first-person view.

in the myTry function, there are 4 lists of offsets, that take care of the four directions, they are offset from the current player position. the movement logic relies on a rot(ation) variable to determine which way the player should be moved.

Hi,

I think it’s better if it is not 3d. will look better in 2d especially because you are using ascii.

But if you want to still go with 3d, then Probably it is better to use outline for the wall. Currently it is not easy to differentiate between wall

\                          /|
 \                        / |
  \                      /  |
   \                    /   |
    \                  /    |
    |\                 |    |
    | \                |    |
    |  \               |    |
    |  |------------+--|    |        
    |  |            |  |    |
    |  |            |  |    |
    |  |            |  |    |
    |  |------------+--|    |
    |  /               |    |      
    | /                |    |
    |/                 |    |
    /                  \    |
   /                    \   |
  /                      \  |
 /                        \ |
/                          \|

does this look better.

This what 2d would be look like:

      /\    /\
     /  \  /  \
    /    \/   /
   /         / 
  /   /\    /
 / X /  \   \  
/   /   /    \
   /    \     \ 
  /      \     \
 /  

or you can use the 2d for minimap

alternative for minimap, just use more simple form:

XXXX
X  X
X  X
X  X
X  XXXXXXX
X  O
XXXXXXXXX

alternative to minimap is to give clue to the wall/floor

X   X   X   X   X  XX   X   X
X   X   X   X   X  XX   X   X
X   X   X   X   X  XX   X   X
X   X   X   X | X  XX   X   X
X   X   X   X | X  XX   X   X
X   X | X   X   X  XX   X   X
X   X | X   XXXXXXXXX   X   X
X   X | X  X        X   X   X
X   X | X X         X   X   X
X   X | XX          X   X   X
X   X   X           X   X   X
X   X  X             X  X   X
X   X X   =========   X X   X
X   XX                 XX   X
X   X                   X   X
X  X                     X  X
X X  = = = = = = = = = =  X X
XX                         XX
X                           X 

in this example I remove the ceiling to make the looks more simple.
I aslo added | and = pattern so that the user can use this symbol as clue where they are.

you can use any pattern, dont’t put it in all the wall, just put it in some wall. User will use the symbol as clue for their position