<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: AFAP: As fast as possible, non linear... --> <!--X-From-R13: "dhmnu Mfbsgubzr]" <dhmnuNfbsgubzr.arg> --> <!--X-Date: Tue, 15 Dec 1998 04:30:01 -0800 --> <!--X-Message-Id: 001501be2827$3d9d30e0$e5066520@k6 --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: AFAP: As fast as possible, non linear...</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:quzah#softhome,net"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00969.html">Previous</a> | <a href="msg00971.html">Next</a> ] Thread: [ <a href="msg00989.html">Previous</a> | <a href="msg00974.html">Next</a> ] Index: [ <A HREF="author.html#00970">Author</A> | <A HREF="#00970">Date</A> | <A HREF="thread.html#00970">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: AFAP: As fast as possible, non linear...</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>></LI> <LI><em>Subject</em>: [MUD-Dev] Re: AFAP: As fast as possible, non linear...</LI> <LI><em>From</em>: "quzah [softhome]" <<A HREF="mailto:quzah#softhome,net">quzah#softhome,net</A>></LI> <LI><em>Date</em>: Tue, 15 Dec 1998 04:34:17 -0800</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> From: Jon Leonard <jleonard#divcom,slimy.com> Date: Monday, December 14, 1998 9:47 PM Subject: [MUD-Dev] Re: AFAP: As fast as possible, non linear... >As has been pointed out, this is the sort of thing to check the web >for. There's not a lot of point writing a maze generator unless you >want the experience of having writtten one. Nod. That's the whole purpose. Just for something to do. I started a small search before I made mine, but quit searching when I saw the majority of the same links referencing the same algorithm -- one that was supposed to take over an hour to complete the process (in pascal). I figured I couldn't possibly do any worse than an hours time, so I stopped looking and decided to write my own. I don't find to many things in life "fun", however writing bits of code is one of the few things I enjoy; which is the whole reason for making the maze. I use an array 10x10 chars for each plane, 10 plains in all. Each plane has one exit to the next floor, with the exit on the bottom floor leading "out". Of each char, bits 0-5 are for direction, and of the remaining two, I currently only use one. I only do a plain at a time, path starting location is random. Also stored in the maze structure is entrance[?], a definable number of entrance points to the maze. Of which, one will be selected at rand to place player there. I use a short int for this, and smash the coords together. ( num/100 = z coord, num/10 = y coord, num%10 = x) The structure also contains abc[?][10] chars for my 7th bit. :) Just a little something to make the maze harder. (As if 1000 rooms wasn't bad enough.) I don't actually even use "rooms" per say. The idea is to make a maze, store it in memory globally, then have ways for the player to stumble into it. Doesn't move the player at all, it just fakes it. When it's done, I'll give away the snippet under some hokey title like "maze of the mind" or something. (The reason I call it that, is because the character doesn't actually ever move. The idea behind the maze is to just use the room the player is in, more than one player will (can) "be in" the same maze, each will still just stay in their own room.) I plan on just adding an item type "ITEM_MAZE". Drop the sucker in a room, and whoever looks at it is taken away into the maze. :) I have yet to finalize the room description. I may just store it with the maze. That, or I will just use the long description of the item that they went through to "get in" the maze. Thus, the view of the maze will be different (possibly) for each person entering. Furthering the "maze of the mind" aspect. When the maze is solved, everyone still stays in it, except the person that found their way out, but the maze is re-randomized. I'm thinking of using the value[x] things for the item to hold the possible reward for getting out. Shrug. Anyway, when it's done, if anyone is interested, I'll post a link. Thanks for the comments everyone. Quzah. </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00969.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00971.html">[MUD-Dev] mud client development systems</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00989.html">[MUD-Dev] Re: Graphic design, client questions</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00974.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00970"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00970"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>[MUD-Dev] Re: Graphic design, client questions</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <LI><strong><A NAME="00995" HREF="msg00995.html">[MUD-Dev] Re: Graphic design, client questions</A></strong>, Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Fri 18 Dec 1998, 13:02 GMT </LI> </ul> <LI><strong><A NAME="01000" HREF="msg01000.html">[MUD-Dev] Re: Graphic design, client questions</A></strong>, Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Fri 18 Dec 1998, 21:21 GMT </LI> </ul> </LI> <LI><strong><A NAME="00978" HREF="msg00978.html">[MUD-Dev] Graphic design, client questions</A></strong>, Thinus Barnard <a href="mailto:thinus_barnard#bigfoot,com">thinus_barnard#bigfoot,com</a>, Thu 17 Dec 1998, 08:50 GMT <UL> <LI><strong><A NAME="00989" HREF="msg00989.html">[MUD-Dev] Re: Graphic design, client questions</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 18 Dec 1998, 00:52 GMT </LI> </UL> </LI> <LI><strong><A NAME="00970" HREF="msg00970.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></strong>, quzah [softhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Tue 15 Dec 1998, 12:30 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00974" HREF="msg00974.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></strong>, quzah [softhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Wed 16 Dec 1998, 12:29 GMT </LI> <LI><strong><A NAME="01055" HREF="msg01055.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></strong>, quzah [softhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Tue 29 Dec 1998, 08:27 GMT </LI> </UL> </LI> <LI><strong><A NAME="00963" HREF="msg00963.html">[MUD-Dev] AFAP: As fast as possible, non linear...</A></strong>, quzah [softhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Mon 14 Dec 1998, 06:41 GMT <UL> <LI><strong><A NAME="00966" HREF="msg00966.html">[MUD-Dev] Re: AFAP: As fast as possible, non linear...</A></strong>, Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Tue 15 Dec 1998, 04:05 GMT </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>