Snakes Pygame: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess |
||
Line 33: | Line 33: | ||
* What is in <code>objects/snake.py</code>? What actions can a snake take? |
* What is in <code>objects/snake.py</code>? What actions can a snake take? |
||
* What is in <code>objects/food.py</code>? What determines where food shows up on the screen? |
* What is in <code>objects/food.py</code>? What determines where food shows up on the screen? |
||
Run the game again. When the good snake runs into the bad snake, you die. Where is the code that checks for collisions between snakes? When a snake eats a piece of food, its tail grows. Where is the code that grows the snake? |
|||
=== 2. Give snakes the ability to move in all directions === |
=== 2. Give snakes the ability to move in all directions === |