Skip to content
Sign upLog in
← Back to Community

snake game

Profile icon
MatthewXia

so lik i coded a snake game and ya

Voters
Profile icon
MatthewXia
Profile icon
ArnavGupta8
Profile icon
programmeruser
Profile icon
Viper2211
Comments
hotnewtop
Profile icon
[deleted]

Well made!

Profile icon
MatthewXia

@FunnyLamma
ty :)

Profile icon
[deleted]

There is a few second delay though.

Profile icon
MatthewXia

@FunnyLamma
ya, i shud try to change that

Profile icon
MatthewXia

@FunnyLamma
this sorta kinda helps, just under the lines,
window=turtle.Screen()
window.title("Matthew's snake game!")
window.bgcolor("black")
window.setup(width=600, height=600)
window.tracer(0)

write in framerate = 500

hopefuly that works

Profile icon
SeamusDonahue

the input lag is really annoying and sometimes kills me, but other than that it's really cool!

Profile icon
MatthewXia

@SeamusDonahue
Sry for the input lag and thanks :) ill try to fix it

Profile icon
Srikar2008

Wow, this is really good.
I found a glitch though
If you go the opposite way of what you just turned, the game resets
for ex., you go left, and then go right, it resets.
yea so anyway, cool project!

Profile icon
MatthewXia

@Srikar2008
So kinda like I coded it so that there is a grid which the snake travels on. So basically it works like if you turn on the same row on the grid, the head overlaps the tail and it resets.

Profile icon
Srikar2008

@MatthewXia
yeah I see now
Thanks!
hope you do amazing projects like this in the future!