Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame # Import biblioteki pygame
- pygame.init() # Inicjalizacja biblioteki
- SCREEN_WIDTH = 800
- SCREEN_HEIGHT = 600
- screen_surface = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
- pygame.display.set_caption("Moja pierwsza gra")
- game_loop = True
- while game_loop:
- events = pygame.event.get()
- for event in events:
- if event.type == pygame.QUIT:
- game_loop = False
- pygame.display.update()
- pygame.quit() # Koniec pygame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement