Commit 42158761 by BellCodeEditor

save project

parent c3104fb3
Showing with 7 additions and 6 deletions
......@@ -4,7 +4,7 @@ from pygame import locals
pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
sreen=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
......@@ -18,7 +18,8 @@ while True:
exit()
sreen.blit(background,(0,0))
sreen.blit(right,(240,120))
sreen.blit(boby,(210,120))
sreen.blit(boby,(210,150))
sreen.blit(boby,(240,150))
sreen.blit(food,(120,270))
\ No newline at end of file
sreen.blit(body,(210,120))
sreen.blit(body,(210,150))
sreen.blit(body,(240,150))
sreen.blit(food,(120,270))
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