Commit 63b36ff0 by BellCodeEditor

save project

parent cc195e99
Showing with 4 additions and 2 deletions
...@@ -8,8 +8,8 @@ pygame.init() ...@@ -8,8 +8,8 @@ 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')
bg = pygame.image.load('apple.png') right = pygame.image.load('right.png')
bg = pygame.image.load('body.png') apple = pygame.image.load('apple.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -19,4 +19,5 @@ while True: ...@@ -19,4 +19,5 @@ while True:
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(right,(240,120)) screen.blit(right,(240,120))
screen.blit(food,(360,300)) screen.blit(food,(360,300))
pygame.display.undate() pygame.display.undate()
\ 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