This project is a basic simulation of a rolling dot. It uses geometry to calculate how much it should roll. _-|-_ Instructions _-|-_ Use the arrow keys to move. Use the size slider to change the size of the sprite, which updates the geometry in real time. _yEet-_sec(ret_ _-|-_ How it Works _-|-_ First, the diameter of the dot is calculated by multiplying its true diameter (46 in this case) by its size divided by 100. The circumference is then calculated using this (diameter * pi). The turn ratio is calculated by dividing 360 by the circumference, so the full calculation is: 360((46*(size/100))pi). The turn ratio is multiplied by the speed of the dot to calculate how much the dot should turn for that amount of movement. _-|-_ Credits _-|-_ Dot costume from Scratch Library. Everything else by me. Enjoy! P.S: Can someone please explain why this has become so popular?
#all #games #simulations #why