Commit d9aa956a by BellCodeEditor

save project

parent 928d00b6
Showing with 7 additions and 0 deletions
...@@ -5,9 +5,16 @@ pygame.init() ...@@ -5,9 +5,16 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
curry=pygame.display.set_mode((660,480)) curry=pygame.display.set_mode((660,480))
durant=pygame.image.load('bg.png')
james=pygame.image.load('apple.png')
tompson=pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) print(event)
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
curry.blit(durant,(0,0))
curry.blit(james,(240,120))
curry.blit(tompson,(210,30))
pygame.display.update()
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