just started learning python recently and cant find a way to make it so my snake game can play again with out re running the game
here is the code
35 messages · Page 1 of 1 (latest)
just started learning python recently and cant find a way to make it so my snake game can play again with out re running the game
here is the code
@worthy oxide
Remember to:
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
share the code as text please. use a pastebin service
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Please react with ✅ to upload your file(s) to our paste bin, which is more accessible for some users.
is there a reason that you're using tkinter?
Not really I’ve pretty much just started learning python so I’ve been trying out different tutorials and stuff
Alright thanks for letting me know
can you start over and write it in just pygame?
@worthy oxide is that godot
Not optimal but that's fine
I used it before
its Python
Godot game engine
Its not Godot. Its Python
I used it cause it said it’s easier for beginners and stuff and I’m just trying to learn the basics rn
I swear the fonts
Yeah that's fine
Doesn't matter tbh
Alright so what you want
Is a button that resets everything
In tkinter you cnan make simple buttons
With tk.Button()
The button will wantna function, that is called when the button is pressed
In the function, you can reset all the variables that changed to its initial value
And draw the screen in its iniitial state
Alr
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.