Snakes Pygame: Difference between revisions

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 36: Line 36:
=== 2. Give snakes the ability to move in all directions ===
=== 2. Give snakes the ability to move in all directions ===


So far, the snake can only move up or down. Complete the "Handle the remaining movement keys" TODO in the <code>move</code> method of the <code>Snake</code> class. Test your changes by re-running the game and moving your snake left and right.
So far, the snake can only move up or down. Fix this by completing the "Handle the remaining movement keys" TODO in the <code>move</code> method of the <code>Snake</code> class. Test your changes by re-running the game and moving your snake left and right.


=== 3. Set a key repeat speed ===
=== 3. Set a key repeat speed ===