Commit a39fe107 by BellCodeEditor

save project

parent 26918565
Showing with 13 additions and 1 deletions
......@@ -3,10 +3,21 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
a=pygame.display.set_mode((660,480))
b=pygame.image.load('bg.png')
c=pygame.image.load('apple.png')
d=pygame.image.load('right.png')
e=pygame.image.load('body.png')
f=pygame.image.load('body.png')
while True:
# 创建一个窗口
for event in pygame.event.get():
print(event)
if event.type == locals.QUIT:
exit()
a.blit(b,(0,0))
a.blit(c,(30,300))
a.blit(d,(210,120))
a.blit(e,(180,120))
a.blit(f,(180,90))
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