Assignment 4

For assignment 4 I used the “box” class I created in the previous exercise and introduced some movement and mouse interaction. I accomplished movement by introducing speed and gravity, and edited the xpos of the rectangles t a simple math function of xpos+mousex. The result is a grouping of rectangles that bounces off the bottom of the screen and shifts left and right as you move the mouse around. if you compare it to my assignment 3 you’ll notice that the overall sketch has remained relatively unchanged and all of the changes occurred in the box class.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s