Commit 99b5d956 by BellCodeEditor

save project

parent 3381028d
Showing with 5 additions and 1 deletions
......@@ -15,8 +15,9 @@ body = pygame.image.load('body.png')
OKCLOCK=pygame.time.Clock()
x=240
y=120
yuhotui=[(180,90),(180,120),(210,120),(x,y)]
while True:
while True
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
......@@ -34,4 +35,6 @@ while True:
# 刷新画面
pygame.display.update()
x+=30
yuhotui.append((x,y))
yuhotui.pop(0)
OKCLOCK.tick(3)
\ No newline at end of file
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