每次我创建一个pygame窗口时,我都会遇到pygame屏幕远小于实际窗口的问题。窗口已正确设置为pygame.display.set_mode((width, height))
中的尺寸,但屏幕要小得多。我使用运行10.9.5的64位Mac OS x,但使用的是32位版本的python 2.7
我已尝试将RESIZE
标记添加到set_mode()
,但没有运气。
import pygame
(width, height) = (800, 600)
screen = pygame.display.set_mode((width, height))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()