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](http://www.gskinner.com/blog/archives/2005/02/source_code_gri.html) class on his site back in February. After reading [Branden Hall’s blog](http://www.waxpraxis.org/coding/18/back-to-school-and-lots-of-little-squares) 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](http://flashforlearning.com/files/Asteroids_04.zip) for yourself and check out Grant’s and Branden’s blogs for yourself.