Commit 834d771c by BellCodeEditor

save project

parent 70c171a1
Showing with 7 additions and 7 deletions
...@@ -3,10 +3,10 @@ from pygame import locals ...@@ -3,10 +3,10 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
bg = pygame.image.loadd('bg.png') bg = pygame.image.load('bg.png')
right = pygame.image.loadd('right .png') right = pygame.image.load('right.png')
apple = pygame.image.loadd('apple.png') apple = pygame.image.load('apple.png')
body = pygame.image.loadd('body.png') body = pygame.image.load('body.png')
# 创建一个窗口 # 创建一个窗口
d = pygame.display.set_mode((660,480)) d = pygame.display.set_mode((660,480))
...@@ -21,6 +21,6 @@ while True: ...@@ -21,6 +21,6 @@ while True:
d.blit(apple,(390,330)) d.blit(apple,(390,330))
d.blit(body,(210,120)) d.blit(body,(210,120))
d.blit(body,(180,120)) d.blit(body,(180,120))
d.blit(body,(180,900)) d.blit(body,(180,90))
pygame.display.urgent() pygame.display.update()
\ No newline at end of file \ 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