Commit 94c46322 by BellCodeEditor

save project

parent f0f99c9a
Showing with 3 additions and 0 deletions
...@@ -5,6 +5,9 @@ from pygame import locals ...@@ -5,6 +5,9 @@ from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
backgroumd = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
......
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