Commit b4d22f49 by BellCodeEditor

save project

parent b2454d27
Showing with 19 additions and 0 deletions
...@@ -6,8 +6,27 @@ pygame.init() ...@@ -6,8 +6,27 @@ pygame.init()
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
background = pygame. image.load('bg.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
screen.blit(background,(0,0))
pygame.display.updata()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment