Skip to content
Advertisement

How Do You Add A Replay Button To A Game?

Im trying to make a replay button for my game where when you die the game pauses until you press the space bar which resets the game so you can play again. I’m using python with pygame. If you can fix this, please do! It would make my day. If possible, please include the code for the fix and where to put it because I am new to python. The source code below is the game I’m working on.

JavaScript

Advertisement

Answer

OK, I’ve done what you’ve wanted but it requires Tkinter cause I was a bit lazy.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement