Commit 24fff4f3 by BellCodeEditor

auto save

parent df7ff986
Showing with 2 additions and 4 deletions
...@@ -4,11 +4,8 @@ from pygame import locals ...@@ -4,11 +4,8 @@ from pygame import locals
pygame.init() 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():
print(event.type) print(event.type)
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
screen.blit(background,(0,0)) \ 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