Commit 37c523e1 by BellCodeEditor

save project

parent c9d584fd
Showing with 4 additions and 3 deletions
......@@ -7,15 +7,15 @@ screen
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
FPSCLOCK=py.game.time.Clock.()
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
screen=pygame.display.set_mode((660,480))
x,y=240,120
FPSCLOCK=py.game.time.Clock.()
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -33,3 +33,4 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
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