Assignment 3: A bouncing ball
- kwan ching
- Sep 10, 2020
- 1 min read
First, I started my assignment based on today's class. I drawn a ball, because it need to be moved around, I set up variable names and value to replace the position values, speed and color values at the same time. Also, I wanted the ball without stroke.
After finished the whole coding, I started to play around to see if I can make it more complicated. Then I decided to change the backgroud color once the ball hits the edge of the canvas. Later, I wanted the ball to change the size once hits the edge.
Therefore, I made two versions of bouncing ball. One is basic and the other is more changes while the ball bouncing around.
Basic
Advanced


Comments