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

RcCookie's Comments

Back to RcCookie's profile

You could try to make the windows movable. Just save the mouse offset coordinates whenever the mouse is pressed down on the object and then every frame set its location to the mouse coordinates plus the offset
The algorithm stores your score to the server only once when the game ends. This is done mainly due to performance: You can’t use multiple threads on the website conversion (to store the score simultaneously while running the game) and I once tried to sync online multiplayer using the userinfo class and that just lagged like crazy because the storing just takes too long. In terms of what happens if you refresh the side, if you didn’t finish it ain’t save your score. If you manage to reset the page during the storing phase, I suppose it will first finish storing the score and then reset, but I don’t exactly know
RcCookieRcCookie

2020/11/30

I‘m amazed by the performance!
The respawning algorithm seems to take very long
And in terms of the math - school. And some wikipedia.
With plain java I meant no external packages
Java fx? I'm not using anything but plain java for that. The actual raycast math classes dont ever need greenfoot
Thanks a lot!
RcCookieRcCookie

2020/10/29

The physics engine does use sliding friction, it’s defaulted to .2 though.