Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys, pygame
- #screen properties
- size = width, hight = 760,375
- screen = pygame.display.set_mode(size)
- black = 0,0,0
- #image loading
- ubuntu = pygame.image.load("ubuntu.png")
- x = 0
- y = 0
- while 1:
- for event in pygame.event.get():
- if event.type == pygame.QUIT:sys.exit()
- screen.fill(black)
- screen.blit(ubuntu,(x,y))
- pygame.display.flip()
- x = x+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement