Commit df7ff986 by BellCodeEditor

auto save

parent b831be8c
...@@ -4,8 +4,11 @@ from pygame import locals ...@@ -4,8 +4,11 @@ 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()
\ No newline at end of file screen.blit(background,(0,0))
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