delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/12/18:15:20

From: "Ethan Giordano" <lostreality AT krusty DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ala King's Quest.....
Date: Fri, 12 Jun 1998 18:06:56 -0400
Organization: Cybernex Inc.
Lines: 23
Message-ID: <6ls8ml$iug$1@news.cybernex.net>
References: <6lq14s$3sb$1 AT news DOT cybernex DOT net>
NNTP-Posting-Host: 207.198.146.92
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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!!

~Ethan


Ethan Giordano wrote in message <6lq14s$3sb$1 AT news DOT cybernex DOT net>...
>i asked this on rec.games.programmer but didn't quite find what i was
>looking for....i wanted to know is anyonw had any ideas about the theory
>behind how the collision detection between the world and the character in
>the king's quest games can be accomplished. thanx.
>
>~Ethan
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019