Advertisement
otorp2

pygame basic

Dec 27th, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import pygame
  2.  
  3. pygame.init()
  4.  
  5. display_width = 800
  6. display_height = 600
  7.  
  8. game_display = pygame.display.set_mode((display_width, display_height))
  9.  
  10. pygame.display.update()
  11.  
  12. while True:
  13.     for event in pygame.event.get():
  14.         print(event)
  15.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement