From: blp01 AT uow DOT edu DOT au (Brett Porter) Newsgroups: comp.os.msdos.djgpp Subject: Re: ala King's Quest..... Date: Sat, 13 Jun 1998 09:21:28 GMT Organization: University of Wollongong, NSW, Australia. Lines: 52 Message-ID: <35824287.6701249@news.uow.edu.au> References: <6lq14s$3sb$1 AT news DOT cybernex DOT net> <6ls8ml$iug$1 AT news DOT cybernex DOT net> Reply-To: blp01 AT uow DOT edu DOT au NNTP-Posting-Host: ceast15.uow.edu.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 12 Jun 1998 18:06:56 -0400, "Ethan Giordano" wrote: >I hate to kinda answer my own question but in doing a little research I came >up with a possible solution. If you have two bitmaps, one representing the >background, and the other just a simple black and white image containing >lines outlinging the objects ( this can easliy be created in Photoshop for >example ). Then you check the character position to this non-displayed >bitmap and if he's trying to move into or through a line then he can't. > >Thanks for the ideas and if anyone has anything better feel free to share!! > I'm currently developing an engine similar to that used in the Sierra games under DJGPP. Part of this engine is some pathfinding code which lets a character find a way around the objects in a room. A room is just defined as a bunch of objects with boundary polygons and an x,y,z position. The code will be available from my website within the next couple of days (actually its there, there is just no link: try http://members.xoom.com/brett_porter/pathfind.zip). This might help you out. If you are developing a game in the same sort of style I'd like to hear about your experiences, and I'd love to help out (and ask for help) wherever possible. A final note is that this should not really be posted to the DJGPP group. I'm just as bad, following it up, I suppose... and I realise you tried rec.games.programmer first. Ive given up trying anything there because 90% of the threads are arguing about something started by a blatant troll and usually resort to swearing, childish name calling and racial abuse from what I've seen. There are a couple of particularly bad offenders and I believe a few people (not myself) have attempted to get in contact with their ISPs about cancelling accounts. That's why I like c.o.m.djgpp, everyone here is so nice :) We've only had one use of profanity this year as far as I remember and he got shot down in flames by two or three of the most respected members of the group. Anyway, back to the point. My page will be totally up and running in a day or two (I hope!), but you can grab that source now. Please let me know about your experiences with it. Cheers, Brett --------------------------------------------------- Brett Porter http://members.xoom.com/brett_porter "I always like to do a first draft before being spontaneous." -- The Sandman ---------------------------------------------------