Commit 002e63f6 by BellCodeEditor

save project

parent 1a6816f2
Showing with 2 additions and 2 deletions
...@@ -8,7 +8,7 @@ pygame.init() ...@@ -8,7 +8,7 @@ pygame.init()
background=pygame.image.load('bg.png') background=pygame.image.load('bg.png')
food=pygame.image.load('apple.png') food=pygame.image.load('apple.png')
body=pygame.image.load('body.png') body=pygame.image.load('body.png')
right=pygame.image.load('right.png') up=pygame.image.load('up.png')
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -16,7 +16,7 @@ while True: ...@@ -16,7 +16,7 @@ while True:
exit() exit()
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(240,120)) screen.blit(up,(240,120))
screen.blit(food,(240,80)) screen.blit(food,(240,80))
screen.blit(body,(240,150)) screen.blit(body,(240,150))
screen.blit(body,(240,180)) screen.blit(body,(240,180))
......
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