Advertisement
Guest User

Untitled

a guest
May 26th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import pygame
  2. pygame.init()
  3. sc = pygame.display.set_mode((400, 300))
  4. sc.fill((100, 150, 200))
  5. dog_surf = pygame.image.load('dog.bmp')
  6. dog_rect = dog_surf.get_rect(bottomright=(400, 300))
  7. sc.blit(dog_surf, dog_rect)
  8. pygame.display.update()
  9. while 1:
  10. for i in pygame.event.get():
  11. if i.type == pygame.QUIT:
  12. exit()
  13. pygame.time.delay(20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement