Run the project, move the joystick around to see things onscreen change! I have made a second, hidden joystick sprite in this project. That one has friendlier, potentially more understandable variable names. I prefer the names of the shown one, but I'm aware not everyone will be able to understand it if they want to use the joystick in their own project so I made the second. If one or more variables in the second should be renamed to make it more obvious what it is, let me know in the comments!
Tutorial for making a mobile-friendly onscreen joystick. See the code inside for an explanation of how this works. This involves some potentially tricky math. If you want to try and understand some of the trig concepts going on here, check out my trig tutorial, it might help ("How do sin, cos, and tan work?"). Or you can alternatively teach yourself, or learn it in school in the future if that applies to you.