Commit df7ff986 by BellCodeEditor

auto save

parent b831be8c
......@@ -4,8 +4,11 @@ from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,480))
# 创建一个窗
background=pygame.image.load("bg.png")
while True:
for event in pygame.event.get():
print(event.type)
if event.type == locals.QUIT:
exit()
\ No newline at end of file
exit()
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