1. A game loop
Try firstWhy does draw() start with screen.clear(...)?
Check your answer
draw() runs 60 times a second; without clearing, every old picture of the dot would stay, making a smear.
init()runs once at the start: set up your variables there.update()runs 60 times a second: change the variables (withglobal).draw()runs after each update: clear the screen and draw everything where it is now.