Commit 10d29083 by BellCodeEditor

save project

parent 6b03c53d
Showing with 18 additions and 1 deletions
......@@ -4,8 +4,24 @@ from pygame import locals
pygame.init()
# 创建一个窗口
h=pygame.display.set_mode((800,600))
h=pygame.display.set_mode((660,480))
bg=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
body=pygame.image.load('body.png')
h.blit(bg,(0,0))
h.blit(right,(240,120))
h.blit(body,(210,120))
h.blit(body,(180,120))
h.blit(body,(180,90))
h.blit(apple,(300,300))
while True:
pygame.display.update()
for a in pygame.event.get():
if a.type == locals.QUIT:
exit()
\ 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