Commit 079f095a by BellCodeEditor

save project

parent 35588b6f
Showing with 2 additions and 1 deletions
...@@ -18,9 +18,10 @@ FPSCLOCK =pygame.time.Clock() ...@@ -18,9 +18,10 @@ FPSCLOCK =pygame.time.Clock()
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT:E if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) 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