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

Report as inappropriate.

danpost
danpost presents ...

2019/6/29

Tracing Bounces in Circle World

Click to create a new bouncing tracer.

Download and run in greenfoot for a better viewing experience (at high speed).

512 views / 22 in the last 7 days

1 vote | 0 in the last 7 days

Tags: danpost

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2019-07-05 19:47:06 UTC Testing on-line speed with different coding.
danpostdanpost

2019/7/5

Still very slow on site !!!
A new version of this scenario was uploaded on 2019-07-05 19:49:28 UTC
Super_HippoSuper_Hippo

2019/7/6

For me, one line (from one side to the other, when it is moving almost through the middle) needs a little bit less than third of a second. (Just counted 60 in 22 seconds.)
danpostdanpost

2019/7/6

@Hippo, that is top speed -- right? Believable. However, in the greenfoot application, it runs SO much quicker (probably 20 to 30 or more times quicker). The visual effect is greatly enhanced..
Super_HippoSuper_Hippo

2019/7/6

Yes, it does run faster directly in GF. Unfortunately, even optimizing your code (if it is even possible in any way) won't really make a difference because all uploaded scenarios run slower since the conversion to JS. You can even notice a difference at speed 50 which makes playing games on the site often easier than they are in GF.
danpostdanpost

2019/7/6

@Hippo, I could probably determine the chord length of a completed line and, instead of moving (or drawing) 5 pixels at a time, move (draw) the entire chord length each act step. I would think that would help for the visual on the site.
A new version of this scenario was uploaded on 2019-07-15 00:26:04 UTC Should be faster now.
Super_HippoSuper_Hippo

2019/7/15

Yes, it is much faster now. :)
Super_HippoSuper_Hippo

2019/7/15

Oh, I just realized it doesn't start at 100 speed anymore. Then it is even faster. Good job!

See all comments

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

Who likes this?

Super_Hippo