Commit 5b817314 by BellCodeEditor

auto save

parent e267c5f8
Showing with 12 additions and 0 deletions
......@@ -9,3 +9,15 @@ while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
#绘制画面
# 1.载入
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
# 2.渲染
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(apple,(360,300))
# 3.刷新
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