Commit e370c774 by BellCodeEditor

auto save

parent 87af5703
Showing with 1 additions and 0 deletions
...@@ -14,6 +14,7 @@ body = pygame.image.load("body.png") ...@@ -14,6 +14,7 @@ body = pygame.image.load("body.png")
food = pygame.image.load("apple.png") food = pygame.image.load("apple.png")
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event)
if event.type==locals.QUIT: 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