Jump to content

Snakes Pygame: Difference between revisions

Fix this by completing the "Set the key repeat speed" TODO in the <code>initialize_screen</code> function in <code>snake.py</code>. See http://www.pygame.org/docs/ref/key.html#pygame.key.set_repeat for details on the Pygame function that controls this behavior.
Test your changes by re-running the game and holding down the arrow key while moving your snake around.
=== 4. Handle quit and restart key presses ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.