Commit d3e688aa by BellCodeEditor

auto save

parent 9bdcea25
Showing with 12 additions and 6 deletions
......@@ -4,9 +4,9 @@ pygame.init()
screen = pygame.display.set_mode((660,480))
bg = pygame.image.load('bg.png')
apple=
food=
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
food=pygame.image.load('food.png')
......@@ -15,8 +15,14 @@ while True:
print(event)
if event.type == locals.QUIT:
exit()
screen.blit(bg,(0.0))
screen.blit(bg,(0,0))
screen.blit(right,(240,120))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
screen.blit(food,(0,0))
pygame.display.update()
\ No newline at end of file
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