Commit 8e309926 by BellCodeEditor

save project

parent 4a5dec47
Showing with 8 additions and 2 deletions
......@@ -4,8 +4,9 @@ from pygame import locals
pygame.init()
bj=pygame.image.load('bg.png')
food=pygame.image.load('apple.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
# 创建一个窗口
screen=pygame.display.set_mode((800,600))
while True:
......@@ -13,6 +14,11 @@ while True:
if event.type==locals.QUIT:
exit()
screen.blit(bj,(0,0))
screen.blit(food,(300,360))
screen.blit(right,(240,120))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
......
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