Snakes Pygame: Difference between revisions
no edit summary
No edit summary
=== 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
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>.
Test your changes by re-running the game and holding down the arrow key while moving your snake around.
I want to keep playing! So far, there's no way to quit (besides closing the window) or restart the game.