This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Bill Brocklesby
Amanda Watson
Clinton Wiersch

The program in which we altered was Bounce. Bounce is a fairly basic program in which an ellipse makes the appearance of a circle bouncing off the edges of a window. The program is in grayscale and as the ball changes direction to make the illusion of it bouncing off the edges of the window.

One of the additions that was made to the program is when “T” key is pressed and held down, random triangles will appear and flash in the background of the screen. The triangles which appear were formed using the 'keyPressed' function. Another change that was made is the when the mouse is moved along the x axis, the background will change to different shades of blue. This was achieved using the 'mouseX' function. The final change to the background that was made was by pressing the letter “W” using the keyPressed function, the background will immediately change to white for the duration of time in which the key is pressed.

The changes that were made to the bouncing ball were, two additional ellipses were added to create a “bulls eye” illusion and the opacity of the two added ellipses was increased. The color of the ball was also changed. The speed of the moving shape was also increased. A function that was added was the ball can change direction on the Y axis when the “Y” key is pressed and then released by using the 'keyRelease' function. The same will happen on the X axis when the key “X” is pressed and released.

Source code: CS_101_Project_1

Built with Processing