if paused: # r如果当前的状态是暂停
paused_image = resume_pressed_image
pygame.time.set_timer(supply_timer, 0) #
pygame.mixer.music.pause()
pygame.mixer.pause()
else:
paused_image = pause_pressed_image
pygame.time.set_timer(supply_timer, 30 * 1000) #
pygame.mixer.music.unpause()
pygame.mixer.unpause()