Commit d3e688aa by BellCodeEditor

auto save

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