Commit 55118246 by BellCodeEditor

auto save

parent cc47cd3c
Showing with 6 additions and 3 deletions
......@@ -7,12 +7,14 @@ apple=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
down=pygame.image.load("down.png")
left=pygame.image.load("left.png")
neuropol=pygame.image.load("neuropol.ttf")
right=pygame.image.load("right.png")
up=pygame.image.load("up.png")
# 创建一个窗口
pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event. get():
if event.type==locals.QUIT:
exit
exit()
screen.blit(bg,(0,0))
pygame.display.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