Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!vela!lmbailey From: lmbailey@vela.acs.oakland.edu (Laurana Bailey) Newsgroups: comp.sys.amiga.programmer Subject: Re: Text Adventure Source Code Message-ID: <7060@vela.acs.oakland.edu> Date: 11 Jun 91 21:11:31 GMT References: <6943@vela.acs.oakland.edu> Organization: Lemming-Aid 1992 - Benefit Concert To Save The Lemmings Lines: 46 In article sheley@convex.com (John "Dumptruck" Sheley) writes: | | | >Hello all. I am trying to write my own Text Adventure game and was | >wondering if there were any others who have written such for the Amiga | >who would be willing to let a beginner study their source code for | >ideas and techniques. I don't have any delusions of going commercial | >with these things and I would give credit in the program for any code | >that I used from the original source. I would release it as a | >Shareware product if I thought it good enough, though I doubt my first | >attempt will be anything that great. | > | >Thanx much ahead of time to anyone willing to help me out. If anyone | >knows of any FTP sites that have TA source, that would help too. | | My advice to you would be to use adl (adventure definition language). It | will save you a lot of work, as it has: a fairly robust input parser, built-in | code for handling swapping in/out text blocks, and all the database | manipulation routines built into the language. Best of all, the source code | builds on both unix systems and amigas, and your adl source is portable | between either platform. Definitely a nice package. | | You can ftp it from abcfd20.larc.nasa.gov (128.155.23.64) - can't remember | the exact directory, though. Thanx much for the help. I do appreciate it. On a slightly related note: Would someone mind explaining to me exactly when I should alloc memory and how I am supposed to know how much I will need? I took a C class at school and am applying the basics I learned to help me learn Amiga specific stuff. One thing we never had to worry about seeing as we were writing on a mainframe, was memory allocation. I could use a crash course in knowing when it is needed and how much to ask for. Thanx again. Laurana -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |Just another lemming... | Yet another Amiga maniac set loose | | | on the world...and you thought things| |lmbailey@vela.acs.oakland.edu | couldn't get any worse. |