BBC BASIC for Windows
« Absolutely pixel-perfect collision detection »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:51pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Absolutely pixel-perfect collision detection
« Thread started on: Aug 18th, 2008, 3:40pm »
Some new functions have been added to GFXLIB to provide fast, easy-to-use, pixel-perfect collision detection suitable for use in many kinds of 2D game. Interested persons can see a demo of one of the collision detection routines right here:
Instructions: Move the hand around using the mouse. If so much as ONE pixel in the hand comes into contact with ANY pixel in any of the three collision objects (cat, crystal and butterfly) then a red screen border appears indicating that a collision has taken place.
Current publicly available version of GFXLIB (poor documentation, sorry):