This demonstrates how you can have very little code do something that looks really cool. The Dot1 and Dot2 sprites just bounce off the walls, but the drawing dot draws line between the two dots while changing the pen color. It looks like a pretty cool effect.
Learn to program games with this free online Scratch course: https://inventwithscratch.com/class