Commit 86d41eb2 by BellCodeEditor

save project

parent e391dd3f
Showing with 3 additions and 0 deletions
...@@ -4,6 +4,9 @@ from pygame import locals ...@@ -4,6 +4,9 @@ from pygame import locals
pygame.init() pygame.init()
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
backround=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
food=pygame.image.load('food.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