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

2017/11/22

HTML 5 translation Error - maybe Math.hypot?

Super_Hippo Super_Hippo

2017/11/22

#
Hello davmac, please check out this scenario. You might not understand what it is about but that doesn't really matter. If you compare the applet and html 5 version, you will immediately see the difference. The lines do not match. They should connect the circles which they do in the applet version, but in the html 5 version they don't... instead, I can't even see a pattern... The source code is available, the code of the lines is in the "Verbindung" class. They are added to the world after the circles (= Towns = "Siedlung") are added. Thanks, Hippo Related to this discussion, too bad I can't just write it there...
davmac davmac

2017/11/23

#
Ok, thanks for reporting it. I'm on leave at the moment so I'll check it when I am back (in a bit over a week).
davmac davmac

2017/11/23

#
By the way: in Safari the lines are in the correct place but they extend infinitely to either side of what they should. In Firefox 57 the scenario doesn't appear to run at all.
Super_Hippo Super_Hippo

2017/12/7

#
Any news already?
davmac davmac

2017/12/7

#
Hmm. I did not realise that the source code for the scenario isn't uploaded. Could you either upload it or send it me via support@greenfoot.org?
Super_Hippo Super_Hippo

2017/12/7

#
Apparently I forgot the checkbox in the last update. Sorry for that.
davmac davmac

2017/12/8

#
No worries. It should be working properly now.
Super_Hippo Super_Hippo

2017/12/8

#
It does. Thank you!
You need to login to post a reply.