Asteroids 2.04: When Things Collide

I was away learning about Knowledge Management this week, which will occupy several blog entries as what I learned from this conference experience relates directly to the purpose of this site.

But, I also wanted to let you know how easy it is to use classes that other people author.

As you can see, I have collision detection working. And I barely wrote any code. In fact the class that runs this is directly from Grant Skinner, who released his [ProxmityManager]( class on his site back in February. After reading [Branden Hall’s blog]( using the same methodology as far as dividing the screen into a grid, and then, when the ship is in a particular block, it checks the neighboring blocks for asteroids.

[Download the source files]( for yourself and check out Grant’s and Branden’s blogs for yourself.