bounce.pde

Screen Shot 2017-04-03 at 12.54.00 PM

The is the first bounce version, I managed to add movement to the circle in all four directions. I also had the circle change color when the middle button on the device had it been pressed.

Screen Shot 2017-04-06 at 12.41.17 PM.png

I added a new color to the circle every time I change the direction of the circle in the second version of the code.

Screen Shot 2017-04-06 at 12.45.08 PM.png

In the third version of bounce I added to the code, code to make it so that the ball bounces off the north and south end of the device’s screen.

Screen Shot 2017-04-06 at 12.47.05 PM.png

In the fourth version of bounce I added to the code, code to make it so that the ball bounces off the eastern end of the device’s screen.

Screen Shot 2017-04-06 at 12.48.56 PM.png

In the fifth, and final version of bounce I added to the code, code to make it so that the ball bounces off the western end of the device’s screen; hence the ball being able to bounce off all sides of the device.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s