the start of a new game • 無敵狀態 = False # if the player is invulnerable • 無敵時間 = 0 # time the player became invulnerable • 結束狀態 = False # if the player has lost • 結束時間 = 0 # time the player lost • 勝利狀態 = False # if the player has won • # create the surfaces to hold game text • 遊戲結束字體 = 基本字體.render('Game Over', True, 白) • 遊戲結束反映 = 遊戲結束字體.get_rect() • 遊戲結束反映.center = (螢幕半高, 螢幕半寬)