Hi great question! Yes if you create a button for reset and set the command=reset and put all your reset code inside that function it will give you the same functionality!
Would it be possible to implement a way to keep track of the previous score and the high score after closing the game? Like using a file to put the previous and high score then the next time the game is opened, both are brought out of the file and put onto the screen.
Hi! That’s a great idea and yes it absolutely is possible. In the last two weeks I just created a video on how to read and write to a text file, so I’d recommend you check those out! You could write the high score to a text file every time it’s beat, then read from that when the program starts up the next time!
Just as a heads up I took your idea here and made a full tutorial on how to to do here if you still need it friend!: ua-cam.com/video/_N8_BhcGHxU/v-deo.html
hey there. thanks for this video. I actually have to make a project where I have to save the scores on a .txt file and then show the high score on screen before starting the game. any idea how to do it? 😅😅
Hey!! I have a video on exactly this, I show you how to open a text file in the beginning to load in a high score and save it and close at the end of a play! Hope this helps and let me know with any issues!! ua-cam.com/video/_N8_BhcGHxU/v-deo.html
Hi, I put all of my bigger projects in GitHub now so any big pygame game you find in my channel will be in GitHub now, but this was earlier on and I didn’t put code in GitHub then I’m sorry - I don’t still have this specific file!
Hello, your explanation of resetting the game with pygame is very good, I was wondering if a similar thing could be done with a button in tkinter.
Hi great question! Yes if you create a button for reset and set the command=reset and put all your reset code inside that function it will give you the same functionality!
❤❤❤❤
Thank you for watching!!
Would it be possible to implement a way to keep track of the previous score and the high score after closing the game? Like using a file to put the previous and high score then the next time the game is opened, both are brought out of the file and put onto the screen.
Hi! That’s a great idea and yes it absolutely is possible. In the last two weeks I just created a video on how to read and write to a text file, so I’d recommend you check those out! You could write the high score to a text file every time it’s beat, then read from that when the program starts up the next time!
@@lemastertech Thank you! I’ll try it out
@@fortune655 Awesome good luck!
Just as a heads up I took your idea here and made a full tutorial on how to to do here if you still need it friend!: ua-cam.com/video/_N8_BhcGHxU/v-deo.html
Thank you bro!!!!
Super welcome thank you for watching!!
nice video bro👍
Thanks! Glad you liked it
hey there. thanks for this video. I actually have to make a project where I have to save the scores on a .txt file and then show the high score on screen before starting the game. any idea how to do it? 😅😅
Hey!! I have a video on exactly this, I show you how to open a text file in the beginning to load in a high score and save it and close at the end of a play! Hope this helps and let me know with any issues!!
ua-cam.com/video/_N8_BhcGHxU/v-deo.html
thanks
You’re welcome! Thanks for watching!
Bro I came here for height score but when u close the game the high score rests to 0
Just save it to a text file!
Does somebody have this in github?
Hi, I put all of my bigger projects in GitHub now so any big pygame game you find in my channel will be in GitHub now, but this was earlier on and I didn’t put code in GitHub then I’m sorry - I don’t still have this specific file!