How to recreate the Snake game with Python!

preview_player
Показать описание
Learn to make the Snake game using Python and Tkinter! In this video we'll use Tkinter Canvas to draw images and move them, re-creating the original arcade Snake game.We had a blast preparing and recording this video for you guys, hope you like it!

-- Blog posts mentioned in the video --

-- Links --

Рекомендации по теме
Комментарии
Автор

We had a blast preparing and recording this video for you guys, hope you like it!


But seriously though, can you beat my high score? You need to code the game first!

tecladocode
Автор

Clear, concise, straight to the point. Thank you, this tutorial was helpful!

meow-hmni
Автор

There's only one problem in this, if you are going down for example and press left up really fast it will not have time to go to the left before it goes up and then you lose

marioattieh
Автор

I'm trying to add a Play again button underneath the score card any idea how I can do that?

jadenb
Автор

OMG this is the best coding tutorial ever!


For real, every single step is very instructive as you explain it explicitly even to a beginner like me
Honestly, don't understand why your channel is not big yet, but I hope it will be.


Thank you!

rhn
Автор

Thank you so much! Exactly what I needed. Great explanation of everything, and easy to follow. Best of luck!

socksock
Автор

I'm getting an error in def mov_snake as local variable 'new_head_position' referenced before assignment



Please help me

ankitadhamale
Автор

So is there a way to do this _without_ installing an additional library for loading images?
(My PC at home is ancient, so it can't even wirelessly connect to internet for installing things directly like that)

SpringySpring
Автор

hello, i have a question ¿how can load assets and the images in pycharm ?

alejandrokroma
Автор

I love whatever extension you have that colours the tab indentations in the code. What's the extension called?

danielwotton
Автор

how i can change window's icon? help please

polunochNY
Автор

what shall i do in that error

can't invoke "event" command: application has been destroyed
while executing
"event generate $w <<ThemeChanged>>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"

moatazmohamed
Автор

How can I make the coordinates appear for every move not only one move

gaurishagrawal
Автор

I am working on sublime text until you said put the picture in the assets it worked
But now how to put the Pic in assets and I am working on sublime text????
Plz answer me quick

randasaid
Автор

how could i make a start menu where i can select difficulties? also when I run the program, it starts automatically and I want to be able to adjust where my window is and then start the game. any suggestions?

damiensmith
Автор

I really liked how you made check_collisions

Phdz
Автор

Letter for letter code copy until 11:29, but my IDE keeps saying, "AttributeError: 'Snake' object has no attribute 'snake_body'. Does anyone have a clue why? Thank you.

danwest
Автор

Hello man, amazing tutorial.
for me I have this error, module 'PIL.ImageTk' has no attribute 'photoImage'

mustafakamal
Автор

i have a problem, it says: Unable to import 'PIL'
what should i do.
i have just started coding.

Viktor
Автор

When I click run I don't get the window in 1:38

aaaaaaaa
join shbcf.ru