top of page
Search

Assignment 7

  • ncampanelli0
  • Oct 28, 2019
  • 1 min read

The program generates a circle, randomly places it on the screen and animates it moving. It bounces off all the walls precisely based on the pixels. The entire program is editable due to making use of variables. When bouncing off a wall the color changes to a random color (all colors that the screen can show are in the list). This was achieved by randomizing 3 numbers between 0 to 255 and then converting the float (or double?) to an integer with the round function and using the output as the input for a fill function. Each segment of the code is commented to explain the purpose of it.


 
 
 

Recent Posts

See All
Final assignment (trivia project)

How I came to this idea for a project was simple. Back when I was in high school I made a trivia style game. This game was written for...

 
 
 
Assignment 9 (drawing program)

I made a drawing program with multiple colors that can be selected (with black being used as the eraser color as the background is...

 
 
 
Assignment 8 (bug fixes)

change log: 1. Revised collision for ball to bounce off paddles properly (instead of requiring perfect pixel alignment with a sweet spot,...

 
 
 

Comments


©2019 by creative coding art and games. Proudly created with Wix.com

bottom of page