Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import pygame
- import os
- from pygame.locals import *
- pygame.init()
- size = width, height = 300,500
- screen = pygame.display.set_mode((size))
- bg = pygame.image.load("bg.jpg").convert()
- screen.blit(bg, [0,0])
- def main():
- clock = pygame.time.Clock()
- pygame.display.set_caption('Project: TheRichBoi')
- while 1:
- for event in pygame.event.get():
- if event.type == QUIT:
- sys.exit()
- if __name__ == '__main__': main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement