== Project ==
== Goals ==
practice using the Pygame library
using an event loop to make action happen
== Project setup ==
=== 3. Give the game a better background ===
The game has a pretty boring solid color background. Spice it up by adding a background image. We've provided a sample background
file call <code>leaves.jpg</code> in the Snakes directory, but create and add your own if you want!
Use [http://www.pygame.org/docs/ref/image.html#pygame.image.load pygame.image.load] to load the background. You'll need to re-display the background on every tick of the game, just like we currently do with the solid color using <code>game_surface.fill(BACKGROUND_COLOR)</code>.
=== 4. Set a key repeat speed ===
Test your changes by re-running the game and holding down the arrow key while moving your snake around.
Handle quit and restart key presses ===
I want to keep playing! So far, there's no way to quit (besides closing the window) or restart the game.
Test your changes by re-running the game, running into the bad snake to end the game, and making sure you can restart.