python pygame pause function
问题 I am beginner and have a problem with my code. Here you can see a short excerpt of my code. It's a simple snake game I created but I was trying to add a pause. I got it but when I start the pause I am not able to close it. Possibly there is a basic mistake in my code so I couldn't advance. I hope you can help me. Thank you in advance! def checkquit(e): running = True pause = False for ev in e: if ev.type == pygame.QUIT: exit(0) running = True if ev.type == pygame.KEYDOWN and ev.key == pygame