Commit 24fff4f3 by BellCodeEditor

auto save

parent df7ff986
Showing with 2 additions and 4 deletions
......@@ -4,11 +4,8 @@ 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()
screen.blit(background,(0,0))
exit()
\ 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