Commit a191ec4a by BellCodeEditor

save project

parent 5c8ae423
Showing with 10 additions and 2 deletions
...@@ -5,9 +5,17 @@ pygame.init() ...@@ -5,9 +5,17 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
backgroud=pygame.image.load('bg.pang')
screen=pygame.dispiay.set_mode((800,600)) screen=pygame.dispiay.set_mode((800,600))
While True: While True:
for event inpygame.event get() for event inpygame.event get()
if event.type=locals.QULT if event.type=locals.QULT
exit() exit()
\ No newline at end of file
screen blit(backgroud(0,0))
pygame.bisplay.update()
\ No newline at end of file
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