collision detection with bitblt

blursea
08-22-2001, 08:28 AM
how can i set a collision detection between two boxes using bitblt

Spectre
08-22-2001, 09:44 AM
When using bitblt, you obviously need to keep an x and y variable stored for each object
you should also know the width and height
therefore
you just do a for loop and check for each object if they are overlapping

blursea
08-22-2001, 10:23 AM
can you give me an exemple of bitblt please

Spectre
08-23-2001, 05:37 AM
Do you need an example of the collision detection or the BitBlt drawing?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum