Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 2D Pixel Perfect Collisions with Rotation! (A work in progress - working code attached)

Author
Message
John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 10th Jan 2008 23:31 Edited at: 13th Jan 2008 14:55
Thanks to Andy Igoe of Banshee Studios for the DBPro Code and Frame for his "DarkBASIC Pro to DarkGDK Converter" which I used.

This is an good 2D Pixel Perfect Collisions with Rotation!

This takes the Dark Basic Pro Code from here and coverts it using the DBPro2DarkGDK converter and has been cleaned up.

This includes 3 examples and a set of just the code you would need to pull into your project to use it.

v0.1 - Original release, couldn't run in debug.
v0.2 - Pulled sprite collision code into own file and include it instead of having duplication
Removed dependencies on a lot of other C++ classes that weren't used

Blah - http://www.john.goewert.org

Attachments

Login to view attachments
John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 10th Jan 2008 23:33
Oh, to note. Some include seems to hate running in Debug mode. Hopefully, I will get this fixed in my next set.

Run in "Release" mode.

http://www.john.goewert.org
Paisleys finest
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: In a house
Posted: 11th Jan 2008 11:09
I could really use this code in my game; would you mind if I converted the 2D portion (without rotation code, I dont need it) to C#? I'll post the conversion here.

Regards, Scott T.

Looking for mature software developer to finish my Bruce Lee remake.. apply via email to MSN address.
John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 11th Jan 2008 12:35
Go ahead. I'm going to clean up this one to reduce all the libraries used and odd bits this weekend and keep it update.

Blah - http://www.john.goewert.org
John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 13th Jan 2008 14:56
v0.2 has been swapped in.

Information and code is attached to the first post.

Blah - http://www.john.goewert.org

Login to post a reply

Server time is: 2024-11-17 02:43:00
Your offset time is: 2024-11-17 02:43:00