DMA199:AS3:Richard Caceres

February 4, 2008

ObstacleFall

Filed under: exercise — admin @ 2:47 pm

 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

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress