Commit 0cbfcc4f by BellCodeEditor

save project

parent c026a140
Showing with 4 additions and 4 deletions
...@@ -7,7 +7,7 @@ pygame.init() ...@@ -7,7 +7,7 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
position=[(210,120),(180,120),(180,90),(x,y)]
FPSCLOCK=pygame.time.Clock() FPSCLOCK=pygame.time.Clock()
x,y=240,120 x,y=240,120
# 背景 # 背景
...@@ -28,9 +28,9 @@ while True: ...@@ -28,9 +28,9 @@ while True:
# 将贪吃蛇画上去 # 将贪吃蛇画上去
screen.blit(right, (x, y)) screen.blit(right, (x, y))
# 将贪吃蛇的身体画上去 # 将贪吃蛇的身体画上去
screen.blit(body, (210, 120)) #screen.blit(body, (210, 120))
screen.blit(body, (180, 120)) #screen.blit(body, (180, 120))
screen.blit(body, (180, 90)) #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