Commit 4cf31a89 by BellCodeEditor

save project

parent ce9763cb
Showing with 15 additions and 3 deletions
......@@ -3,9 +3,21 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
w=pygame.image.load("bg.png")
e=pygame.image.load('apple.png')
i=pygame.image.load('right.png')
y=pygame.image.load('body.png')
# 创建一个窗口
a=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get()
\ No newline at end of file
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
a.blit(w,(0,0))
a.blit(e,(60,150))
a.blit(i,(90,90))
a.blit(y,(60,90))
a.blit(y,(30,90))
a.blit(y,(0,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