Commit 7a130fbe by BellCodeEditor

auto save

parent a452b14f
Showing with 1 additions and 1 deletions
...@@ -33,8 +33,8 @@ score = 0 ...@@ -33,8 +33,8 @@ score = 0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit() exit()
pygame.display.update()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT and setheading != "left": if event.key == locals.K_RIGHT and setheading != "left":
setheading = 'right' setheading = 'right'
......
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