Commit 5c0c78f2 by BellCodeEditor

save project

parent e755dadb
Showing with 16 additions and 1 deletions
......@@ -3,10 +3,24 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
background=pygame.image.load('bg.png')
apple=pygame.image.load('apple.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
aaaaa=pygame.display.set_mode((660,480))
ww=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
ww.blit(background,(0,0))
ww.blit(right,(240,120))
ww.blit(body,(210,120))
ww.blit(body,(180,120))
ww.blit(body,(180,90))
ww.blit(apple,(180,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