获得更高分辨率的pygame

时间:2016-04-24 16:06:26

标签: python pygame resolution

我正在尝试用python和pygame制作游戏。我想制作一款分辨率不错的游戏,但我无论如何都无法获得更高的分辨率?

import pygame
import time
import random
import os

pygame.init()
height = 600
width = 800
window = pygame.display.set_mode((width,height))

white = 255,255,255
black = 0,0,0
red = 255,0,0
blue = 0,0,255

def update():
    pygame.display.update()
def game():
    stop_game = False
    while not stop_game:
        window.fill(white)
        loaded_image = pygame.image.load("Player.png")
        loaded_image = pygame.transform.scale(loaded_image,(150,150))
        window.blit(loaded_image,(0,0))
        update()
game()

1 个答案:

答案 0 :(得分:0)

print pygame.display.list_modes()

这将列出可用的显示模式。我的上升到(2646,1024)。