Commit 09cb1335 by BellCodeEditor

auto save

parent f68300af
Showing with 6 additions and 1 deletions
......@@ -6,8 +6,13 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
background=pygame.image.load('bg.png')
snake=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(body,(240,))
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