Skip to content
Thomas Leathers edited this page Feb 10, 2016 · 2 revisions

Welcome to the text-maze 2 wiki!
text maze uses various bash scripts to allow the player to solve mazes.

unlike text-maze 2's predecessor, it has a fixed 3D perspective and the entire maze is not visible all at once. this allows text-maze 2 to handle much larger mazes than the original text-maze, at much faster speeds.

-no compositor.
text-maze 2 uses 16 premade T-IMG images. (15 for the maze perspective views and 1 fallback.

lookup.sh -used in wall detection logic
T-IMG.sh -used to display the current maze perspective view.
play-text-maze.sh -runs the game in the terminal designated in the config file.

mazesearch.sh is located in the
MAZE
directory and searches for the main maze files (.MAZE)

each maze is made up of 2 files: where sample is the maze filename
sample.MAZE -contains all necessary info about the maze.
sample.MOD.txt -maze data file.

sample.MAZE looks like this:
sample maze
sample.MOD.txt
11
9
2
2
9
2
explanation:
name
.MOD.txt file
sizey -maze size Y (lines)
sizex -maze size X (columns)
starty -player start Y (lines)
startx -player start X (columns)
endy -player end goal Y (lines)
endx -player end goal X (columns)

where Y1 X1 is the number at line 1 column 1

sample.MOD.txt looks like this:
111111111
101111111
100010011
101110101
101000101
100010001
101110111
101111111
101111111
101111111
111111111
1=wall
0=path
please ensure starting and ending positions are on paths.

note that no path is along the edge of the maze, that there is at least one wall (1) space between the player and the edge of the maze at all times. this is necessary due to how text-maze 2, determines witch T-IMG image to present as the current maze view.

2 mazes are included:
sample.MAZE -original test maze used during development
similar.MAZE -maze identical to the one shown in text-maze's icon

Clone this wiki locally