Monday, December 26, 2011

Improved collision detection

Today I finally implemented pixel collision detection for transformed objects.
I was approximating hits with rectangles before which was fine with the asteroids.
But since the introduction of enemies it became clear that it wasn't enough.
Unfortunately this really messed up my code which was very clean before.
Whatever it was a necessary step!

No comments:

Post a Comment