This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

askgriff
askgriff presents ...

2013/12/17

Ball World Edge Demos

Students have requested examples of each of these methods when a "ball" reaches the edge of a world: bounce, come out the other side, and randomly appear on another wall.

3027 views / 6 in the last 7 days

Tags: demo with-source ball score counter

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Tue Dec 17 19:48:16 UTC 2013 Removed the "KKK" balls -- didn't notice it until it was pointed out! Also changed some comments and method names.
askgriffaskgriff

2013/12/17

The three balls do: ♦ Blue = Bounce ♦ Red = Teleport to opposite side ♦ Yellow = Randomly start at a new edge
A new version of this scenario was uploaded on Tue Dec 17 20:32:06 UTC 2013 Added a score counter in case someone needs one. At this point it's adding one to the score every time it acts.
A new version of this scenario was uploaded on Tue Dec 17 20:48:05 UTC 2013 Added a delay for the score counter just to slow it down a bit.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.