Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/python
  2. import sys, pygame
  3.  
  4. #screen properties
  5. size = width, hight = 760,375
  6. screen = pygame.display.set_mode(size)
  7. black = 0,0,0
  8. #image loading
  9. ubuntu = pygame.image.load("ubuntu.png")
  10.  
  11. x = 0
  12. y = 0
  13.  
  14. while 1:
  15.     for event in pygame.event.get():
  16.         if event.type == pygame.QUIT:sys.exit()
  17.     screen.fill(black)
  18.     screen.blit(ubuntu,(x,y))
  19.     pygame.display.flip()
  20.     x = x+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement