delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/21/12:31:54

From: lubaldo AT adinet DOT com DOT uy
Message-Id: <3.0.1.32.19980321141838.0068dff8@adinet.com.uy>
Date: Sat, 21 Mar 1998 14:18:38 -0300
To: "Rylan" <rylan AT intekom DOT co DOT za>, djgpp AT delorie DOT com
Subject: Announce: Allegro Sprites Collision Detection (answering also)
In-Reply-To: <01bd5463$483e9b80$a26f19c4@default>
Mime-Version: 1.0

At 12:53 AM 21/03/1998 GMT, Rylan wrote:
>Hi All,
	Hi.

>I am looking for some example code for doing pixel perfect collision
>detection on Allegro sprites. I have taken a look at Neil Chinnery's code
>on Shawn's page, but I want to collect a few more examples of how to do it
>to get a general idea for what will work best and what is fastest.
	Hehe! I just been working on that!!! My library has bitmask collision
detection routines based on the Neil Chinnery and Michael de la Pena ones
and also has pixel-by-pixel (pixel perfect but using directly the sprite
data) routines.
	The library is still in alpha... but you can look at it since I don´t
think that I will change the design and soon it will get beta or final
release.
	Download it directly from http://members.xoom.com/baldo/ppcol.zip, the ZIP
is 22kb long. There is a link from my homepage (look signature) and also
some description.
	Features:
		- Bitmasked collision detection (all types of sprites), pixel-by-pixel
collision detection (8,15,16 and 32bpp memory sprites) and bounding box
collision detection (all types of sprites). 
		- Source code distribution with a makefile to automatize the compiling
and documentation building.
		- Full documentation in the format of Allegro´s Makedoc utility.
		- An example program and a benchmarking program.
		- Allegro style design and easy/friendly to use.

	Btw, I have corrected some bugs that where in the Neil Chinnery routines,
so, tough my library is in alpha, it works quiet well, specially the
bitmasked routines.

	I hope this is what you where looking for...

	Also, there is a strange bug in the pixel-by-pixel collision detection
routine that prevents it from running in 16bpp... but this bug is very
strange since it is the SAME code for 15bpp and with 15bpp it works
nicely... it would be nice if someone can look in the code and tell me what
I am doing wrong... since I cannot see my error...

Goodbye all!


Ivan Baldo:
lubaldo AT adinet DOT com DOT uy - http://members.xoom.com/baldo.
Phone: (598) (2) 613 3223.
Caldas 1781, Malvin, Montevideo, Uruguay, South America.

(If you have problems with the previous addresses, try this ones:
ibaldo AT usa DOT net, http://baldo.home.ml.org).

- Raw text -


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