Snakes Pygame

From OpenHatch wiki
Revision as of 15:03, 28 July 2012 by imported>Jesstess


Implement parts of a Snakes clone using the Pygame graphical game development library.


  • practice using the Pygame library
  • practice using an event loop to make action happen

Project setup

1. Install the project dependencies

Installing Pygame from

2. Download and un-archive the Snakes project skeleton code

Un-archiving will produce a Snakes folder containing several Python files.

3. Test your setup

Run the script in your Snakes directory. A window with a Snakes game should pop up.

Project steps

1. Familiarize yourself with

2. Give snakes the ability to move in all directions

3. Set a key repeat speed

4. Handle quit and restart key presses