def show_go_screen(self):
# Game Over Screen
gameStart = False
SWOOSH_SOUND.play()
while not gameStart:
self.display_text("Flappy Bird",WIDTH / 3, HEIGHT / 3, 30, WHITE)
self.display_text("Press S to Start...",WIDTH/3, HEIGHT / 2, 30, WHITE)
pg.display.flip()
for event in pg.event.get():
if event.type == pg.QUIT:
gameStart = True
self.running = False
if event.type == pg.KEYDOWN and event.key == pg.K_s:
gameStart = True
评论列表
文章目录