Commit ea1dbe45 by BellCodeEditor

save project

parent 6fc5f672
Showing with 3 additions and 2 deletions
...@@ -12,6 +12,7 @@ body = pygame.image.load('body.png') #身体 ...@@ -12,6 +12,7 @@ body = pygame.image.load('body.png') #身体
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
FPSCLOCK=pygame.time.Clock() FPSCLOCK=pygame.time.Clock()
stwzx=240 stwzx=240
stwzy=120
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:
...@@ -22,11 +23,11 @@ while True: ...@@ -22,11 +23,11 @@ while True:
screen.blit(background,(0,0)) screen.blit(background,(0,0))
# 将蛇头画上去 # 将蛇头画上去
screen.blit(right,(stwzx,120)) screen.blit(right,(stwzx,stwzy))
# 将身体画上去 # 将身体画上去
screen.blit(body,(210,120)) screen.blit(body,(210,120))
screen.blit(body,(180,120)) screen.blit(body,(180,120))
screen.blit(body,(150,120)) screen.blit(body,(180,90))
# 将果实画上去 # 将果实画上去
screen.blit(food,(360,300)) screen.blit(food,(360,300))
# 刷新画面 # 刷新画面
......
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