Python Turtle Graphics Snake Game Part 3

Опубликовано: 30 Март 2020
на канале: Compucademy
1,104
19

Python Turtle Graphics Snake Game Part 3

Continuing to build the classic Snake Game using Python Turtle Graphics.

You can access the source code for this lesson here: https://pastebin.com/2kjfa2T1

This is part three of a mini-course on building the Snake Game in Python.

In it we cover:

Understanding how the snake moves
Adding segments to the snake when it catches the food
Using the `turtle.ontimer()` method to replace `while True:`

Code Club Pixel Art link: https://projects.raspberrypi.org/en/p...

We have a blog with many articles on learning Python programming and Computer Science GCSE and A Level here: https://compucademy.co.uk/blog/

Sign up for the Compucademy mailing list to keep up to date with articles and offers here: http://eepurl.com/gkYOPn

Here's a link to an alternative implementation for comparison: https://compucademy.co.uk/classic-sna...

#python #fun #gamedev #turtlegraphics