Anonymous user
Snakes Pygame: Difference between revisions
→3. Set a key repeat speed
imported>Jesstess |
imported>Jesstess |
||
Line 43:
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 ===
|