Move the mouse around :)
The angle in the top-left corner shows the angle of the blue line and the gradient shows the gradient of it.
This just started off as a test project to see the powers of atan, but then I decided it deserved a nice UI and this happened :)
Please love completely pen-rendered UI :)
How the angle of the blue line is calculated:
atan([mouse x] ÷ [mouse y]) + 180 × ([mouse y] < 0)
How the gradient of the blue line is calculated:
[mouse y] ÷ [mouse x]
How the angle from 90° is calculated:
(atan([mouse x] ÷ [mouse y]) + 270 - 180 × ([mouse y] < 0)) mod 360
Credit to @djpro for the pen text engine which I modified :)
Ready to Remix!
Add your ideas! You could try:
- drawing a new costume
- changing the scripts
- creating a new sprite