Commit 8d2c7dda by BellCodeEditor

save project

parent db044546
Showing with 4 additions and 4 deletions
...@@ -5,10 +5,10 @@ pygame.init() ...@@ -5,10 +5,10 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660, 480), 0, 32) screen = pygame.display.set_mode((660, 480), 0, 32)
background = pygame.image.locals('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.locals('right.png') right = pygame.image.load('right.png')
food = pygame.image.locals('apple.png') food = pygame.image.load('apple.png')
body = pygame.image.locals('body.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:
......
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