“pygame obtenha largura e altura da tela” Respostas de código

pygame obtenha largura e altura da tela

#pygame
w, h = pygame.display.get_surface().get_size()

#w = width
#h = height
Foolish Flamingo

Como obter o tamanho da altura da janela do pygame

import pygame
pygame.init()

window = pygame.display.set_mode((500, 500))
x, y = window.get_size()

print("The width is %s" %x)
print("The height is %s" %y)
Plain Penguin

Respostas semelhantes a “pygame obtenha largura e altura da tela”

Perguntas semelhantes a “pygame obtenha largura e altura da tela”

Mais respostas relacionadas para “pygame obtenha largura e altura da tela” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código