40 points · by adambenayoun · 14y ago · 11 comments
`var label` gets declared 3 times inside each loop iteration. Even if JS had block scope, which it doesn't, that would be pretty bad.
For collision detection is pretty easy, as the Closure Library (which LimeJS is built around) comes with "bounding box" support to perform this very easily.
Still this might be worth looking at.