python2dspiel/main.py
muelline kartoffelsack b83a53c2f5 Initial commit
2024-12-27 11:23:25 +00:00

12 lines
309 B
Python

import pygame, sys
from pygame.locals import QUIT
pygame.init()
DISPLAYSURF = pygame.display.set_mode((400, 300))
pygame.display.set_caption('Hello World!')
while True:
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
pygame.display.update()