Messing around with PUNG

Wracking my brain to remember math — embarrassingly simple math — that I really haven’t thought much about in twenty years is both rewarding and titillating, and highly frustrating at the same time. I’m going to switch over to some late night reading, but I wrote about half of the collision detection and “angle-of-reflection” type code for the new game (which really would have been much easier to just write in Flash). Of course, the balls don’t actually do anything but detect a collision — while they do bounce off the sides, they ignore the game architecture (which is randomly twitching) and the other balls, just passing through them, although they do light up to indicate the collision and also render the line representing the collision angle between the two in brown, as well the white lines that show the direction and, in a thicker stroke, that ball’s kinetic energy. Hopefully this holds my attention long enough to finish it…

One Comment

  1. JuanKi wrote:

    Inmediately thought of your old swimming ways


    Monday, January 25, 2010 at 10:20 am | Permalink
Wow Shannon, that's really annoying! What is it, 1997 on Geocities? Retroweb is NOT cool!

Post a Comment

Your email is never published nor shared. Required fields are marked *