Commit 0530b4ed by BellCodeEditor

save project

parent 776a2b09
Showing with 12 additions and 3 deletions
...@@ -7,11 +7,20 @@ pygame.init() ...@@ -7,11 +7,20 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
background = pygame.image.load('bg.png')
apple = pygame.image.load('apple.png')
right = pygame.image.load('right.png')
body = pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
screen.blit(background, (0, 0))
screen.blit(right,(120,120))
screen.blit(body,(90,120))
screen.blit(body,(60,120))
screen.blit(body,(30,120))
screen.blit(apple,(240,300))
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