maze in 3D using c and openGL

728 views
Skip to first unread message

Tharindra Galahena

unread,
Dec 18, 2011, 5:04:15 AM12/18/11
to info-warrior
run gen to create random maze. type,

./gen length height

length - width of the maze
height - height of the maze

then the maze will be recorded in ab.txt file.

run maze3D to view in 3D. type,

 ./maze3D length height startx starty resolution

ex: ./maze3D 20 20 1 1 640x480  (use simple 'x' in '640x480' . )

height - height of the maze
length - width of the maze
endx, endy - x and y of the place you want to end
resolution - resolution of your monitor
maze3D.zip

Tharindragalahena

unread,
Dec 18, 2011, 5:17:21 AM12/18/11
to info-warrior

Tharindragalahena

unread,
Dec 19, 2011, 1:16:46 AM12/19/11
to info-warrior
Controls
---------------

W,S,A,D - go up, down ,left and right
O,P - toggle view from up


On Dec 18, 3:17 pm, Tharindragalahena <tcg.galah...@gmail.com> wrote:
> video at,
>
> http://inf0warri0r.blogspot.com/2011/12/maze-in-3d-using-c-and-opengl...

Gomathi Sunder

unread,
Nov 20, 2014, 3:05:41 AM11/20/14
to info-w...@googlegroups.com
Hi. great piece of code. Really easy to follow. I wanted to know where you got the algorithm for generating the binary file for the maze. Did you write it on your own? Or is there a paper I could read on the subject. Would be really grateful if you could help me out.
With Reagrds
Gomathi
Reply all
Reply to author
Forward
0 new messages