Difference: TurtleAnimation (7 vs. 8)

Revision 82019-02-11 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="IntroToCSF2018"

Turtle Animation - Bouncing Balls

Lab 3

Line: 78 to 78
 
  1. Make it so the ball slows down over time (perhaps due to friction)
  2. Make it so when you do a mouse click speeds the ball up, or down, or changes it randomly (see: https://repl.it/@JimSkon/TurtleMouseClickExample)
  3. Add a bumper: add a fixed shape (like a circle or square) somewhere in the boundries. Have the ball bounce off this.
Changed:
<
<
  1. Add a boundry appear when you click on the screen and have it bounce off this (only one at a time is reasonable). You could make it so a box appear wher you click, and remains until the ball hits it and bounces. The box then disappears, and you canmake another.
  2. Make the ball change to a random color everytime it hits the wall
>
>
  1. Have a boundry appear when you click on the screen and have it bounce off this (only one at a time is reasonable). You could make it so a box will appear wher your click, and remains until the ball hits it and bounces. The box then disappears, and you can make another.
  2. Make the ball change to a random color everytime it hits the wall.
 
  1. Add gravity so the ball bounces off the floor.. See how here: https://processing.org/examples/bouncingball.html. Also an example here: https://cs.kenyon.edu/apps/KinecticJS/Gravity4.html (obviously too complete for now)
Changed:
<
<
  1. Add a second ball
>
>
  1. Add a second ball.
 
  1. Make 2 balls boune off each other. You can see a simulation here https://cs.kenyon.edu/apps/KinecticJS/animateball9.html
  2. Think of something else cool!
Turn in a link to the repl.it!
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback