1
以下代碼會導致我的遊戲關閉。我不知道這個代碼有什麼問題。執行Font類時遊戲關閉
pygame.font.init()
font=pygame.font.Font(None, 36)
text = font.render("Game Over", 1, (10, 10, 10))
background_image.blit(text, (0,0))
pygame.font.quit()
我想在屏幕的左上角顯示此文本。謝謝。
是否有錯誤訊息? – geoffspear 2012-01-16 17:15:03
nope,屏幕剛關閉,IDLE告訴你重新啓動 – user1111042 2012-01-16 17:15:46
@downvoter,你爲什麼downvote? (餘額+1) – juliomalegria 2012-01-16 17:19:31