Need help coding pacman for university

I am surprised you draw track in setup since you use background later.
You can use drawTrack after background

You can use the fill command multiple times,
once before you draw the tracks and
once before you draw pacman itself

1 Like