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

Report as inappropriate.

MatheMagician
MatheMagician presents ...

2013/6/4

Rotating Star System

Based on the old screen saver, but allows for rotation. It uses trigonometric addition formulas to rotate several thousand points in a few milliseconds. Use arrow keys to rotate and wasd for movement.

1927 views / 18 in the last 7 days

Tags: simulation physics demo with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Tue Jun 04 14:46:56 UTC 2013
JetLennitJetLennit

2013/6/4

I got it down to a square after a while of moving
Game/maniacGame/maniac

2013/6/4

that is because the stars are spawned in a square and they go further and further away from you which makes the stars go closer together and makes a square like shape.
JetLennitJetLennit

2013/6/4

Ohh..... Hadn't noticed the drift
Yes, the drift is annoying: if the rotation wasn't implemented it would be easy to reset the position of a star after it has passed from the camera's view. Now, the player may want to turn back to where a star was.

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

Who likes this?

No votes yet.