Advertisement
Guest User

tictactoe

a guest
Feb 21st, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import pygame
  2. pygame.init()
  3.  
  4. win = pygame.display.set_mode((1366, 768))
  5.  
  6. pygame.display.set_caption("Kółko i krzyżyk")
  7.  
  8. board = pygame.image.load('plansza.png')
  9.  
  10.  
  11.  
  12. def redrawGameWindow():
  13.     win.blit(board, (0, 0))
  14.     pygame.display.update()
  15.  
  16. run = True
  17. while run:
  18.     for event in pygame.event.get():
  19.         if event.type == pygame.QUIT:
  20.             run = False
  21.  
  22.     redrawGameWindow()
  23.  
  24. pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement