本文整理匯總了Python中Menu.Menu.draw_info方法的典型用法代碼示例。如果您正苦於以下問題:Python Menu.draw_info方法的具體用法?Python Menu.draw_info怎麽用?Python Menu.draw_info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Menu.Menu
的用法示例。
在下文中一共展示了Menu.draw_info方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from Menu import Menu [as 別名]
# 或者: from Menu.Menu import draw_info [as 別名]
init += 0
# redraws the screen to update everything
screen.fill((0,0,0))
shape.draw_shape(area.matrix(), screen)
area.draw(shape, area.matrix(), screen)
area.print_game_info(screen)
next_shape.update_shape(area.matrix())
area.draw_next_shape(next_shape,screen)
hud.draw(screen)
pygame.display.flip()
# display the info screen
while menu.info and not menu.infoDone:
menu.draw_info(screen)
pygame.display.flip()
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
if event.type == pygame.KEYDOWN:
menu.infoDone=1
# displays the loss screen
while not menu.info and not gameOver.pressContinue:
gameOver.draw_Gameover(screen)
gameOver.press_continue(screen)
pygame.display.flip()