Commit 29499b65 by BellCodeEditor

save project

parent d6a536aa
Showing with 13 additions and 4 deletions
......@@ -4,9 +4,18 @@ from pygame import locals
pygame.init()
# 创建一个窗口
pygame.display.set_mode((660,480))
Surface = pygame.display.set_mode((660,480))
playbork=pygame.image.load('bg.png')
food = pygame.image.load('apple.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
while True:
for eval in pygame.event.get():
if eval.type == locals.QUIT:
exit()
\ No newline at end of file
exit()
Surface.blit(playbork,(0,0))
Surface.blit(food,(180,170))
Surface.blit(right,(155,57))
Surface.blit(body,(77,200))
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