Click on the hat to start the action. Press the space bar to stop the hat.
This project demonstrates nested loops. The objective is for the hat to draw a tunnel. You can determine the length of the tunnel without using math! Can you guess how? Check the code :) A forever loop initiates the hat's movements Two inner loops are nested inside this "forever" loop controlling the action of the sprite (hat). Can you think of other ways to use nested loops?