Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import sys
  2. import pygame
  3. import os
  4. from pygame.locals import *
  5.  
  6.  
  7. pygame.init()
  8. size = width, height = 300,500
  9. screen = pygame.display.set_mode((size))
  10. bg = pygame.image.load("bg.jpg").convert()
  11. screen.blit(bg, [0,0])
  12. def main():
  13.     clock = pygame.time.Clock()
  14.     pygame.display.set_caption('Project: TheRichBoi')
  15.     while 1:
  16.         for event in pygame.event.get():
  17.             if event.type == QUIT:
  18.                 sys.exit()
  19. if __name__ == '__main__': main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement