Jump to content

Snakes Pygame: Difference between revisions

* 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?
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 ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.