Introduction to Computer Media

ICM week 2 assignment: catch the bubble

This week, we should work with rule-based animation, motion, and interaction. I made a bouncing bubble that will change color when it hit the boundary of the screen. And also, if you click the mouse when the bubble is in the gray rectangle, the ball will get stuck in the gray rectangle.

I also want to draw more bubbles, but I encountered many bugs. I'm trying to figure it out.

屏幕快照 2014-09-16 上午10.56.50And here's my code.