Commit 1d82341a by BellCodeEditor

save project

parent 3a6d0967
Showing with 11 additions and 3 deletions
...@@ -5,10 +5,17 @@ pygame.init() ...@@ -5,10 +5,17 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
scren=pygame.display.set_mode((600,600)) scren=pygame.display.set_mode((600,600))
pygame.image.load(img) body=pygame.image.load('body.png')
apple=pygame.image.load('apple.png')
bg= pygame.image.load('bg.png')
left=pygame.image.load('left.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
scren.blit(load,(0,0)) scren.blit(bg,(0,0))
scren.blit(apple,(120,240))
scren.blit(left,(210,300))
scren.blit(body,(240,300))
scren.blit(body,(240,330))
pygame.display.update() 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