Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- pygame.init() # inicjalizacja pygame
- SCREEN_WIDTH = 800
- SCREEN_HEIGHT = 600
- # tworzenie okna o podanych wymiarach
- screen_surface = pygame.display.set_mode( (SCREEN_WIDTH, SCREEN_HEIGHT) )
- pygame.display.set_caption('Pierwsza gra w pygame') # tytuł okienka
- clock = pygame.time.Clock()
- game_status = True
- while game_status:
- events = pygame.event.get()
- for event in events:
- if event.type == pygame.QUIT:
- game_status = False
- pygame.display.update()
- clock.tick(60)
- pygame.quit()
- quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement