Advertisement
jabela

Draw Something

Dec 14th, 2015
448
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.  
  3. pygame.init()
  4. pygame.display.set_caption('Hello World!')
  5. window = pygame.display.set_mode((500, 400))
  6. running = True
  7.  
  8. #Draw Once
  9. pygame.draw.rect(window, (0, 255, 0),(50, 50, 100, 50))
  10. pygame.draw.ellipse(window, (0, 0, 255),(100, 190, 60, 30))
  11. pygame.display.update()
  12.  
  13. #Main Loop
  14. while running:
  15.     for event in pygame.event.get():
  16.         if event.type == pygame.QUIT:
  17.             running = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement