0
我想在python和pygame中製作遊戲。我想用合適的分辨率製作遊戲,但是我無法通過任何方式獲得更高的分辨率?獲取高分辨率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()
正在改變寬度和高度變量不適合你嗎? – Keatinge