Mail Archives: djgpp/1997/02/05/17:32:10
On Wed, 05 Feb 1997 06:21:03 -0600, tamasiu AT informatik DOT tu-muenchen DOT de wrote:
>Hi!
>What is the best/fastest way to do collision detection routines for a
>Action game in Allegro?
>Chris.
The fastest way is probably to check for collision on the four "corners" of each
image rectangle. However, that leaves a lot to be desired as far as accuracy is
concerned. One method I use is to store the coordinate outline of each image
and check if two images overlap at any point. It's more time-consuming, but
it's more accurate.
- Raw text -