top of page
Search
  • ncampanelli0

Assignment 7

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.


8 views0 comments

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 Windows Command Line (.bat file). The original program was quite

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 black). I used an array to keep track of all the colors and used a fo

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, which was the original collision detection. I figured out it w

bottom of page