Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Building the Classic Snake Game with Python

Building the Classic Snake Game with Python

1h 4mIntermediate2021-10-21

Authors

Robin Andrews

Robin Andrews

Founder of Compucademy

Course details

Are you looking for a fun, meaningful way to level up your Python programming skills? In this course, instructor Robin Andrews shows you how to put together what you need to know to build the Python version of a classic Snake game. Robin introduces you to turtle graphics and how you can use and control animation using Python turtle graphics. He explains global variables and shows you how to draw with turtle graphics by using stamps. With these pieces in place, it’s time to work on the game itself! Robin walks you through how to represent the snake, move it around the screen, and control the snake’s direction. He discusses the game loop that is used to control the game and also goes over how to add snake food to the game, implement a scoring system, and reset the game. Robin finishes up with advice on how to use Lambda expressions to avoid repetition in your game and some fun ways to personalize your game.

Skills covered

Game DevelopmentPythonProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off

Concepts

0. Introduction

  • 01 - Take your Python skills to the next level
  • 02 - What you should know

1. Introduction to Python Turtle Graphics

  • 03 - Meet turtle graphics
  • 04 - A starter template for turtle graphics programs
  • 05 - Animation with Python turtle graphics
  • 06 - Global variables
  • 07 - Drawing with stamps

2. The Snake Game

  • 08 - Snake representation and movement
  • 09 - Basic snake movement program
  • 10 - Controlling the snake's direction
  • 11 - The game loop
  • 12 - Snake food
  • 13 - Keeping score
  • 14 - Game reset

3. Finishing Touches

  • 15 - Avoiding repetition by using Lambda expressions
  • 16 - Personalizing your game

Conclusion

  • 17 - Integrating material covered

Related courses

Related learn paths

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
zarinpal
zibal