ObstacleFall

Description:
This is another exercise with Box2D. This time, there are more obstacles to get in the way of the falling objects. These obstacles are generated procedurally with code. Also, the program creates a new ball object whereever the user clicks.
This program does not run as quickly as the previous box2D exercise, and when I increase the “circleDef.restitution” property, which controls bounciness, the program runs even slower.
Hopefully the more I familiarize myself with box2D, the more I’ll understand what happens and be able to optimize the code.
View:
http://users.design.ucla.edu/~rcaceres/199/exercises/ObstacleFall/ObstacleFall.html
Source:
http://users.design.ucla.edu/~rcaceres/199/exercises/ObstacleFall/
http://users.design.ucla.edu/~rcaceres/199/exercises/ObstacleFall.tar