17 lines
340 B
Python
17 lines
340 B
Python
import pygame
|
|
|
|
pygame.init()
|
|
|
|
MAINSCREEN_SIZE = (800,600)
|
|
|
|
pygame.display.set_caption("Test-Sidescroller")
|
|
pygame.display.set_mode(MAINSCREEN_SIZE)
|
|
|
|
gamestate = True
|
|
|
|
|
|
while(gamestate):
|
|
for event in pygame.event.get():
|
|
if (event.type == pygame.QUIT):
|
|
print("Programm wird geschlossen!")
|
|
gamestate = False |