18 lines
395 B
Python
18 lines
395 B
Python
#!/usr/bin/env python3
|
|
|
|
import pygame
|
|
from pygame.locals import *
|
|
|
|
pygame.init()
|
|
|
|
displayInfo = pygame.display.Info()
|
|
zoom = 1.3
|
|
|
|
WIDTH = int(displayInfo.current_w / zoom)
|
|
HEIGHT = int(displayInfo.current_h / zoom)
|
|
|
|
# this will be the Surface you work on (in the docs referenced as Surface)
|
|
screen = pygame.display.set_mode((WIDTH, HEIGHT))
|
|
|
|
pygame.display.set_caption("Caption of your window")
|