2011/5/7 Peter Williams <[email protected]>: > Hi, > Apologies in advance for this off topic message. > I am looking for a demo in Pascal / Delphi / Lazarus (* preferred) of > generating a 2D maze and letting the user walk through the maze in simple 3D > graphics with lines (e.g. not ASCII) but using graphics. For example, > looking down a corridor it would be drawn as single point perspective with a > square and diagonal lines from the corners. > I have found a "pascal" demo of something similar on the web, but in reality > it is mostly assembler for TP7. The ASM code is unreadable and undocumented > and I also want pure pascal code so that it is portable. > Does anyone here have any code that does this? Maybe you have written a demo > like this in the past, or know of one. > Best Regards, > Peter Williams > Hobart, Australia
I don't know algorithms to generate 2D mazes, but for graphic part, if you download latest svn of GLScene (not the one on Lazarus CCR, but official GLScene [ http://sourceforge.net/projects/glscene/ ]) and you look for "portal" demo, you'll find something that could help you. There are also a lot of demos, also for walk through the scene. Regards, Kjow -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
