def showscreen():
BG()
draw_text(screen, "asteroid invasion", 50, WIDTH / 2, HEIGHT / 4)
draw_text(screen, "left and right arrow to move", 20,WIDTH / 2, HEIGHT / 2-12.5)
draw_text(screen, "press space to shoot", 20,WIDTH / 2, HEIGHT / 2-50)
draw_text(screen, "if red bar turns green ", 20,WIDTH / 2, HEIGHT / 2+22)
draw_text(screen, "press arrow up to use sonicshot", 20,WIDTH / 2, HEIGHT / 2+44)
draw_text(screen,'highscore: '+str(highscore),18,WIDTH/2,400)
draw_text(screen, "Press up arrow to start", 18, WIDTH / 2, HEIGHT * 3 / 4)
pygame.display.flip()
waiting = True
while waiting:
clock.tick(FPS)
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
pygame.exit()
if event.type == pygame.KEYUP:
if event.key == pygame.K_UP:
waiting = False
评论列表
文章目录