Lightsaber spin effect
A lightsaber spin effect contains concepts essential to learning canvas game development. This projects covers how to get objects moving along the outline of a circle with sine and cosine functions, and also covers the atan2 function which'll help you determine what angle something should be rotated to based on your mouse's positioning.
The final output can be shared in the following link: https://mandeep-thapa.github.io/snm-project/