Commit a6f0518a by BellCodeEditor

save project

parent 5660f117
Showing with 2 additions and 5 deletions
......@@ -8,15 +8,12 @@ pygame.init()
screen = pygame.display.set_mode((660, 480))
#坐标
x,y = 240,120
FPS=999999999999999999999999999999999999999999999999999999999999999999999999999999
FPS=6
a=[(180, 90),(180, 120),(210, 120),(x,y)]
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
up = pygame.image.load('body.png')
do = pygame.image.load('body.png')
body = pygame.image.load('body.png')
while True:
......@@ -24,7 +21,7 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x+=30
x+=999999
a.append((x,y))
a.pop(0)
print(a)
......
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