This is simply a crude test for a method of joystick control. Feel free to reuse the code for any other projects. This would work best in fullscreen. This joystick also works on mobile for those wondering.
This was a challenge given to me by a friend. The challenge was to create a joystick on scratch without reference material. It was made in about 30mins.