Code Snake Game in Python

preview_player
Показать описание
Python snake game! How to code a snake game in Python for beginners! Learn how to create a game of snake in Python using tkinter graphics library. Throughout the tutorial, you will learn how to create a graphical user interface (GUI) to display the Snake game, create the game loop, listen for Key presses to move the snake, use a list to store the snake's segments, and check collision and out of bounds for game over.

Setup Python with Visual Studio Code:

Python Game Programming Projects Playlist:

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

did the whole thing in about two hours with no python knowledge. was great fun, but sometimes it takes some time to figure out, what certain things mean or why the large or lower case actually matters. but great video, i think i will go on with other ones on your channel <3

aracudas
Автор

Your explanations are always very clear and understandable. Do you plan on adding Python/Pygame game development in the future?

philip
Автор

Everything was fine until the snake head and food! For some reason the snake head didn’t show up when I ran it, but there were no bugs, I said oh well and done the food too just to see if it would show then, no food and no snake head! Idk how

RafL-jlfr
Автор

My first game complete. Took me 4 days working on it after work every night. Thanks was fun

peaceandlovenz
Автор

what shall i do when i get this error "_tkinter.TclError: can't invoke "winfo" command: application has been destroyed"?

blnk
Автор

bro best coding channel on yt thank you

Pigeon
Автор

this code was nice and learned although it did not work for some reason i just ended up copying your github version

diego-fcym
Автор

how do you create the dimensions and squares that were already there?

ehverzy
Автор

can you tell me how i can make the game restart using space when its game over?

skatla
Автор

left arrow key not working.. any suggestion

azzazs
Автор

Down arrow is not working can anyone help me?

francescosarjojo
Автор

i kinda love that the tkinter symbol kinda fits

Doggy_Styles_Coding
Автор

This was very useful, i took notes on how certain things work, and how to do them, it was so fun finally fixing a problem and then it working, i think I'm going to follow more of your tutorials <3

tygaming-dg
Автор

I‘m currently at minute 28 but when my snake eats the food, it just stops moving and I can‘t get it to move anymore. The food disappears and appears somewhere else. Why does my snake stop?

mxwsa
Автор

why the background color isn't working for me? and centering the window too.

besufikadabebe
Автор

I am getting type error of Tile() takes no arguments what can i do now please help me

SreelakshmiMyla-hpvv
Автор

Amazing tutorial and everything worked out. I tried changing the background with a custom photo, I watched different kinds of tutorials but It just doesn't work. Can someone help please?

HARVEYRODGELLOPEZCARANZO
Автор

Sir can you upload snake game project for Python IDLE

god_legend__
Автор

When I run the program it says bad geometry specifier

najiatawab
Автор

Hey so i cant fiqure out why the snake wont show up same with the food i checked the code from github from you and i didnt see the promblem with my code i need some help

Lasermonkgt