Commit a1022211 by BellCodeEditor

save project

parent 582dde3f
Showing with 3 additions and 2 deletions
...@@ -3,7 +3,7 @@ from pygame import locals ...@@ -3,7 +3,7 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
bg=pygame.image.load("bg.png") bg=pygame.image.load("bg.png")
bo=pygame.image.load("body.png") ri=pygame.image.load("right.png")
ap=pygame.image.load("apple.png") ap=pygame.image.load("apple.png")
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
...@@ -12,6 +12,6 @@ while True: ...@@ -12,6 +12,6 @@ while True:
if event.type==pygame.QUIT: if event.type==pygame.QUIT:
exit() exit()
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(bo,(120,120)) screen.blit(ri,(120,120))
screen.blit(ap,(240,240)) screen.blit(ap,(240,240))
pygame.display.update() 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