It’s not just “pew pew pew” anymore – now there’s also “bzzzt bzzzt.” This forced me to right a whole new class of collision detection shapes. Up to now, everything was treated as a circle, which is easy. For beams, I just had to add line segments and the test for collisions between lines and circles. My collision algorithm uses a sparse grid implementation, and testing a line segment against a grid was a little tricky. There’s a subtle bug in there somewhere because sometimes I see collisions being missed…

Check out beams in version

Leave a Reply

Your email address will not be published.